2

I have a store with few categories. I want to have only one url for each product - domain.com/product_name.html. I don't want to have products URLs with the category path in them.

I set “Use Categories Path for Product URLs” to "NO", but when I am saving any category it is creating the Catalog URL Rewrites for all the products of that category i.e. one regular url (domain.com/product_name.html) and one for each category path (domain.com/category_path1/product_name.html)

(domain.com/category_path1/category_path2/product_name.html).

Magento Version: 2.1.5

0

This is how it works. The setting “Use Categories Path for Product URLs” to "NO" will work as expected on every page(Shopping cart, Recently viewed, Crosssell/upsell, wishlist etc) except product listing page.

  • I have tested this right now but on shopping cart page same product url showing (domain.com/category_path1/product_name.html) which is unexpected. – Nitesh Mar 13 '18 at 9:55
  • run indexing, clear cache. – Shireen N Mar 13 '18 at 10:07
  • There is no url_rewrite indexer in magento 2 but still did reindexing and clean as well as flushed magento cache, nothing changed. – Nitesh Mar 13 '18 at 12:13
  • This setting not working on Product Listing pages makes no sense. That's the only place I would expect it to have any effect. Did you figure anything out with this? I have this setting turned off too yet it's still generating rewrites I don't want. – BrianVPS Sep 27 '18 at 20:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.