Hreflang tags for pages with extension records not correct
Using for example the news extension: I have a detail page with the news plugin integrated to show the news article, e.g. with the following URL:
Looking at the html code of the generated page I see that the content of the hreflang tags are set to the hosting page:
<link rel="alternate" hreflang="en" href="https://example.org/en/path/to/news/detail/"/>
<link rel="alternate" hreflang="x-default" href="https://example.org/en/path/to/news/detail/"/>
[BUGFIX] Respect GET parameters when generating canonicalized URLs
Add current query string to the generated canonicalized URL to make the
hreflang and canonical work with additional parameters as well.
Parameters that are excluded from cache hash generation and not included
are excluded from the canonicalized URL.
Tested-by: Joerg Kummer <email@example.com>
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Joerg Kummer <email@example.com>
Reviewed-by: Markus Klein <firstname.lastname@example.org>
Tested-by: Markus Klein <email@example.com>