magento2-regenurl
magento2-regenurl copied to clipboard
Duplicated url for {product_id}
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
Hello @Iazel,
I am getting same errors.
Could you tell me what is wrong?
Thanks
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.
Thanks @luigi-pelosi.
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.