magento2-regenerate_url_rewrites
magento2-regenerate_url_rewrites copied to clipboard
Multi-store wrong category urls
I have issue with generating categories for store ID 1, because this extension create always store ID 2 category names url names for store ID 1. How fix that this generating right category names for store ID 1?
Example. Store ID 1. - This is right url! https://website_url/store_code/alypuhelimen-osat/apple/iphone-6-6plus-6s-6splus/akut/iphone-6-alkuperainen-akku-1810mah-3-82v
Store ID 2. - This is wrong url! - this is wrong category url "alypuhelimen-osat" and "akut" https://website_url/store_code/alypuhelimen-osat/apple/iphone-6-6plus-6s-6splus/akut/iphone-6-original-battery-1810mah-3-82v
It should create a url -> https://website_url/store_code/smartphone-parts/apple/iphone-6-6plus-6s-6splus/batteries/iphone-6-original-battery-1810mah-3-82v
I am tested commands: php bin/magento ok:urlrewrites:regenerate php bin/magento ok:urlrewrites:regenerate --entity-type=product --store-id=1 php bin/magento ok:urlrewrites:regenerate --entity-type=product --store-id=2 php bin/magento ok:urlrewrites:regenerate --entity-type=category --store-id=1 php bin/magento ok:urlrewrites:regenerate --entity-type=category --store-id=2 php bin/magento ok:urlrewrites:regenerate --store-id=1 php bin/magento ok:urlrewrites:regenerate --store-id=2
Also tried remove all product and category url_rewrite: DELETE FROM url_rewrite WHERE entity_type='product'; DELETE FROM url_rewrite WHERE entity_type='catefory';
Magento 2.3.2, PHP 7.3
Hello @Userr017
Please upgrade to version 1.5.2 and re-test. Should be fixed.
Thank you.
Best regards, Oleg Koval.
Hello I got same problem with multisite setup and category url generation. I uses the wrong main cat name. Like: In english https://www.dom.com/tool/screwdriver.html In french it does https://www.dom.com/tool/tournevis.html instead of https://www.dom.com/outil/tournevis.html
So unfortunatly I can't use your work but I would love to !
Best regards, Max
I'm experiencing the same issue as @eBusinessAtlantique is. It seems that for the url_path
the store is not taken into account. Because the url_key
seems to be correct.
I'm experiencing the same issue