1

In my magento 2.2.4 setup some products of some categories show the category path and some do not. i checked all settings but I dont see the difference.

In all store views (Default, etc.) I have setup "NO" for the below setting:

Stores/Configuration/Catalog/Catalog/SearchEngineOptimisation/Use Categories Path for Product URLs

I have ran the reindex several times but no results so far.

2 Answers 2

0

Go to admin panel and Catalog => Category/Display Settings / Anchor and check value . This setting change URL path product . (make clean cache and reindex)

2
  • Its the same in every category. Commented Jul 1, 2018 at 12:04
  • But I did that and no change. Commented Jul 1, 2018 at 12:10
0

The problem here is that URL rewrites cannot be recreated from nowhere.

SO please try the below extension and run the commands as mentioned there.

https://github.com/olegkoval/magento2-regenerate_url_rewrites

2
  • Is there a way to use this extension for only one URL? I fear to rewrite everything to avaoid other side effects. Commented Jul 1, 2018 at 12:22
  • @MichaelMüller you can edit the file (github.com/olegkoval/magento2-regenerate_url_rewrites/blob/…) file and customize the $categories collection as per your requirement for a quick solution. Commented Jul 19, 2018 at 9:36

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.