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

Duplicated url for {product_id}

Open luigi-pelosi opened this issue 7 years ago • 4 comments

Hi @Iazel, I've have cleaned all the products' urls from url_rewrite table and flushed catalog_url_rewrite_product_category table and then issued your CLI command to s1 s2 s3 stores. On console are shown several "Duplicated url for {product_id}" although into catalog_url_rewrite_product_category there are all products' ids associated to categories and on the product's page the url bar shows the /[store]/catalog/product/view/id/[product_id]/[product_type]/[product_name]/category/[category_id]/ format instead of the URL friendly format.

Could you tell me if I'm wrong?

Thank you in advance

luigi-pelosi avatar Jun 08 '17 10:06 luigi-pelosi

Hello @Iazel,

I am getting same errors.

Could you tell me what is wrong?

Thanks

purvi123 avatar Jun 23 '17 12:06 purvi123

Hi @purvi123, I've found a workaround for that problem: simply go to Categories -> switch to all categories -> under SEO section append to the URL Key a simple character and save, then remove that character and save again. This will solve the problem since Magento reindexes the category URL key to their products only if there's a change into URL.

Hope this was useful.

luigi-pelosi avatar Jun 26 '17 20:06 luigi-pelosi

Thanks @luigi-pelosi.

purvi123 avatar Jun 27 '17 05:06 purvi123

go to Categories -> switch to all categories

Are we talking about Magento 2? I tried this (changed category AND product Url key), but is did not work.

El-Rico avatar Oct 09 '17 14:10 El-Rico