1

I tried to enable the category prefix from admin STORES >> CONFIG >> CATALOG >> CATALOG >> SEARCH ENGINE OPTIMIZATION. It is working pretty well on the category page. I am using Magenest Shop by brand extension for the brand's page and on these brand pages the URL of products looks like abc.com//product but on the category page, it shows like abc.com/category/product. I already tried indexing and cache flush. Please let me know if there is anything else I can try

My Magento version is 2.3.1

1
  • 1
    Looks like it is a module bug. It works normally for categories but not for brands and brands is a @magenest module. Commented Dec 15, 2021 at 8:52

1 Answer 1

1

Since a product coud be in multiple categories, this is exactly what is supposed to do.

When you browse a category a current category prefix is added to product url.

Shop by brand page is not a category page so no prefix is added by default.

If the extension doesn't provide this functionality, you could ask the extension support to introduce it in the next version or customize it yourself.

1
  • Thanks @krybbio you saved my day. The brand page was not a category page so the current_category was unable to fetch the category. Commented Dec 16, 2021 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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