[BUGFIX] Don't render hreflang tag for pages with canonical set
When a canonical link is set in the page properties, this page or translation should not get a hreflang link in frontend as this might send conflicting signals to search engines. Resolves: #89878 Releases: master, 10.4 Change-Id: I4a2fb81b474bf155ba0beca5dfa3948f36edf840 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67328 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Guido Schmechel <guido.schmechel@brandung.de> Tested-by:
Martin Kutschker <mkutschker-typo3@yahoo.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Guido Schmechel <guido.schmechel@brandung.de> Reviewed-by:
Martin Kutschker <mkutschker-typo3@yahoo.com> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com>
Showing
- typo3/sysext/seo/Classes/HrefLang/HrefLangGenerator.php 37 additions, 2 deletionstypo3/sysext/seo/Classes/HrefLang/HrefLangGenerator.php
- typo3/sysext/seo/Tests/Functional/Fixtures/HrefLangScenario.yml 8 additions, 0 deletions...sysext/seo/Tests/Functional/Fixtures/HrefLangScenario.yml
- typo3/sysext/seo/Tests/Functional/HrefLang/HrefLangGeneratorTest.php 24 additions, 0 deletions...t/seo/Tests/Functional/HrefLang/HrefLangGeneratorTest.php
Please register or sign in to comment