For some reason, I am getting .html in my product URL, like so: https://example.com/mycategory.html/myproduct.html. I want to remove .html from mycategory when I am on a product page.
Is there a setting for this? I know I can remove .html from the category completely, but this is not what I want, I want it to be there in category pages. Strange thing is, for some products it works, no .html in the category path.
Magento 2.3.3
Thanks
-
1Please refer this magento.stackexchange.com/questions/204984/…sandesh s– sandesh s2020年08月04日 08:55:34 +00:00Commented Aug 4, 2020 at 8:55
-
Wont that remove it from the category URL on the category page itself also?EOB– EOB2020年08月04日 09:27:38 +00:00Commented Aug 4, 2020 at 9:27
1 Answer 1
Go to
Stores-> Configuration-> Catalog-> Catalog->
Search Engine Optimization-> Category URL Suffix
to remove .html you can change configuration and save it.
-
This will also remove it from the category page URL, which is not what I want.EOB– EOB2020年08月04日 09:26:53 +00:00Commented Aug 4, 2020 at 9:26