[BUGFIX] Populate href lang URI only if the link is available 50/60350/5
authorJulian Wundrak <julian@wundrak.net>
Thu, 28 Mar 2019 20:11:03 +0000 (21:11 +0100)
committerRichard Haeser <richard@maxserv.com>
Fri, 12 Apr 2019 18:33:38 +0000 (20:33 +0200)
commit5afb39401ee7615bf5db5c7e3246d1ca884557a6
treebcae5e4f723fc4fd196e4d6ed302d889a0e8aad4
parentf1171848560872714af3639c1f2547121f1fb8af
[BUGFIX] Populate href lang URI only if the link is available

If there are e.g., records that have no translation, the
HrefLangGenerator outputs the site-base URL. Expected is that the entry
for this page is suppressed.

Change-Id: I6fbd4dd00955906dff13c0e5aceea6804c52dd1b
Resolves: #88032
Releases: master, 9.5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60350
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Jörg Bösche <typo3@joergboesche.de>
Tested-by: Richard Haeser <richard@maxserv.com>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Richard Haeser <richard@maxserv.com>
typo3/sysext/seo/Classes/HrefLang/HrefLangGenerator.php