magento2-regenerate_url_rewrites icon indicating copy to clipboard operation
magento2-regenerate_url_rewrites copied to clipboard

Multi-store wrong category urls

Open Userr017 opened this issue 5 years ago • 4 comments

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

Userr017 avatar Nov 05 '19 12:11 Userr017

Hello @Userr017

Please upgrade to version 1.5.2 and re-test. Should be fixed.

Thank you.

Best regards, Oleg Koval.

olegkoval avatar Mar 18 '20 13:03 olegkoval

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

eBusinessAtlantique avatar Mar 23 '21 19:03 eBusinessAtlantique

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.

Serializator avatar Mar 30 '21 07:03 Serializator

I'm experiencing the same issue

alex5513 avatar Nov 19 '21 18:11 alex5513