We have a oxid onlineshop with different domains/subdomains depending on currency and language.
Now we have a problem with hreflang tags, because of parameters
- the session of the basket between domains is set by
?force_sid=(random string for session id)
- for different views in categories like
?ldtype=grid&_artperpage=100&pgNr=0&cl=alist&searchparam=&cnid=3ae4a2e1dd7501139.35363255
If the URL is accessed without the parameters then the canonical and hreflang tags are correct.
If the parameters are set then the canonical and hreflang tags are wrong.
What are the correct tags for example: www.example.de/category-name/?force_sid=e9k6p7d5dbpcu3s41p22tbll71 ?
We have:
<link rel="canonical" href="https://www.example.de/category-name/">
<link rel="alternate" hreflang="x-default" href="https://www.example.de/category-name/">
<link rel="alternate" hreflang="de" href="https://www.example.de/category-name/">
<link rel="alternate" hreflang="de-CH" href="https://www.example.ch/category-name/">
<link rel="alternate" hreflang="fr-CH" href="https://fr.example.ch/category-name/">
<link rel="alternate" hreflang="de-AT" href="https://www.example.at/category-name/">
<link rel="alternate" hreflang="fr" href="https://www.example.fr/category-name/">
<link rel="alternate" hreflang="en" href="https://www.example.com/category-name/">
<link rel="alternate" hreflang="es" href="https://www.example.es/category-name/">