[BUGFIX] Render hreflang only for translated pages
If a language in the SiteConfig is set to the fallbackType free and there is no translated page for this language, then there is now no generated hreflang. Previously, a link was always generated with default language slug, which lead to 404 page not found. Resolves: #94270 Releases: main, 11.5, 10.4 Change-Id: Ifb261cf388fccbaabbf2bcae9ac805b143c9b42f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69919 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/seo/Classes/HrefLang/HrefLangGenerator.php 5 additions, 1 deletiontypo3/sysext/seo/Classes/HrefLang/HrefLangGenerator.php
- typo3/sysext/seo/Tests/Functional/Fixtures/HrefLangScenario.yml 5 additions, 0 deletions...sysext/seo/Tests/Functional/Fixtures/HrefLangScenario.yml
- typo3/sysext/seo/Tests/Functional/HrefLang/HrefLangGeneratorTest.php 10 additions, 4 deletions...t/seo/Tests/Functional/HrefLang/HrefLangGeneratorTest.php
Please register or sign in to comment