Canonical and/or SEO url:s for variants?

Hey
What do you use and which one is „best“?
For my products with different colors, I have set Canonical url:s to „on“ and selected one of the colors. But checking the site with Ahref gives a lot of error about „Canonical URL has no incoming internal links“

The URL looks like this:
https://bytadiskbank.se/detail/018d36047047727ca296b1b28cd0fd39

The selected variant for canonical URL have this URL:
https://bytadiskbank.se/Dalago-45-F-Silgranit-8-faerger

  • Is it not bad for SEO having an URL like the first one with some random numbers?
  • Should I set the SEO Url for each variant? (To avoid the random numbers)
  • How does Canonical URL and SEO URL „works together“ in Shopware? Do I need to set both of them (for the main product)?

Sorry for the unstructured questions - but I’m so confused :crazy_face:

// Magnus

HI Magnus,

We see a similar phenomena in 6.5.8.7
How is your URL template configured?

My current assumption is that product names might have duplicates among variants and so cause the seoUrl() in twig not to get a speaking URL.

But that’s just a wild guess.
Alex

I just checked https://bytadiskbank.se/Dalago-45-F-Silgranit-8-faerger and you might have solved it?

Hi Aleximi
Thanks!
Yes, I set the URL for product detail page to:
{{ product.translated.name|lower }}-{{ product.productNumber }}

Instead of a slash before the product number, I used a double hyphen. I imagen (!?) that the last segment of the URL should contain the product name (or targeted keywords) for SEO purpose. So the product variants have almost the same URL as the main product (without the random numbers).

I might be wrong :zany_face: but the URL is nicer this way. :grinning_face: