Canonical tag 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 canonical tag is set to the hosting page:
This is no good as it prevents search engines from indexing the detail page.
[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>