VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: betterlead on July 04, 2016, 13:05:25 PM

Title: Why these two different URLs to same product
Post by: betterlead on July 04, 2016, 13:05:25 PM
Hi,
Why do I get two different links to every (or almost) product, like in example this one?


https://livingstudio.se/shoppa-via-kategori/krokar-haengare/lilla-eda-detaljer?virtuemart_currency_id=124&lang=se
https://livingstudio.se/shoppa-via-kategori/krokar-haengare/lilla-eda-detaljer

Regards
Title: Re: Why these two different URLs to same product
Post by: GJC Web Design on July 04, 2016, 13:20:56 PM
you could probably find a few more as well..

but what matters is the canonical which is always the same

<link href="https://livingstudio.se/shoppa-via-kategori/krokar-haengare/lilla-eda-detaljer" rel="canonical" />
Title: Re: Why these two different URLs to same product
Post by: betterlead on July 05, 2016, 10:36:05 AM
So, Virtuemart fixes it? (I see it in the code, but not quite sure it fixes the problem) I don't need to care, even if under the Google Html Improvement Tag pages are listed as duplicates?
Sorry for my ignorance.
Title: Re: Why these two different URLs to same product
Post by: GJC Web Design on July 05, 2016, 10:51:17 AM
Google indexes the canonical if present

IMHO the canonical is present on all VM pages