Bug #88020
closedEpic #89797: HrefLang / Canonical issues
inconsistencies in hreflang output
100%
Description
hreflang output differs for real languages and fallback languages (non translated pages).
if there is a translation for the current page, the hreflang tags output includes only translated pages.
if there is no translation and fallback is shown, there are hreflang tags for any active language in sites config. (should be)
in site config the fallbackType for real languages is strict (de, zh), for the fallback languages the fallbackType is fallback and fallbacks is set to the related language and in addition to the default language.
Files
Updated by Peter Reichenbach over 5 years ago
the correct hreflang-tag-set appears only if there is a setup with multiple fallback languages and existing translation for the first fallback language.
Updated by Peter Reichenbach over 5 years ago
same behavior in the language menu, fallback languages become available.
the crux is, in the language menu i do not want the fallback languages. the language menu should show only real pages. the hfreflang tags may include fallback languages.
therefore it would be nice if the language setup has a config value for hreflang and another for the language menu.
with enabled option set to false, the page is not available in this language at all, so this option is useless.
Updated by Richard Haeser over 5 years ago
- Category changed from Localization to SEO
Updated by Richard Haeser over 5 years ago
Will check fallback behaviour. About the wanted difference between the language menu and hreflang: why should the information you give to a search engine (hreflang tags) differ from the information you give to a user?
Updated by Jonas Eberle about 5 years ago
- Related to Bug #89462: hreflang missing for languages with fallbackType: fallback added
Updated by Richard Haeser almost 5 years ago
- Related to Bug #88545: Behaviour canonical link and HTML lang tag in language overlay added
Updated by Richard Haeser almost 4 years ago
Ok, I checked this again.
I'm submitting a patch that would include all languages in the hreflang. If you use the language menu processor, you could check for the available
parameter on each language to check if you should render the link. Of course, you can also exclude certain languages in the processor configuration.
Updated by Gerrit Code Review almost 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67574
Updated by Gerrit Code Review almost 4 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67892
Updated by Richard Haeser almost 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e833d08dfe784c77da79d359c12370684b75554d.
Updated by Matthias Vossen over 1 year ago
- Related to Bug #100813: Tags "hreflang" missing on pages with fallback language behavior added