So, basically we have implemented canonical tag, which points to the url with the parameters stripped. For instance, if somebody visits the page
https://mywebsite.com/en/some-page.php?someparameter=value
The value of the canonical tag on this page would be:
<link href="https://mywebsite.com/en/some-page.php" rel="canonical" />
Now, how should we go about hreflang tag in this case?
Should it point to the canonical language versions of the page like that?
<link href="https://mywebsite.com/ru/some-page.php" rel="alternate" hreflang="ru" />
<link href="https://mywebsite.com/en/some-page.php" rel="alternate" hreflang="en" />
or should it use the exact url accessed by the user?
<link href="https://mywebsite.com/ru/some-page.php?someparameter=value" rel="alternate" hreflang="ru" />
<link href="https://mywebsite.com/en/some-page.php?someparameter=value" rel="alternate" hreflang="en" />
Which is the right scenario? Thank you.