cancel
Showing results for 
Search instead for 
Did you mean: 

Modify dynamically created product url in magento 2

Modify dynamically created product url in magento 2

I have enabled "Use Categories Path for Product URLs". Because of this, I get category path in product url. But when we search the product, it redirect to the product url that does not contain category path.

 

I want same url always whether from catalog page or from search.

 

Please tell me how to achieve this. I am going to have single category for single product always.

Thanks !