Bug #88020

Epic #89797: HrefLang / Canonical issues

inconsistencies in hreflang output

Added by Peter Reichenbach 9 months ago. Updated 10 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2019-03-27
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
hreflang, language, fallback
Complexity:
Is Regression:
Sprint Focus:

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.

hreflang.png View (249 KB) Peter Reichenbach, 2019-03-27 13:51


Related issues

Related to TYPO3 Core - Bug #89462: hreflang missing for languages with fallbackType: fallback New 2019-10-21
Related to TYPO3 Core - Bug #88545: Behaviour canonical link and HTML lang tag in language overlay Needs Feedback 2019-06-12

History

#1 Updated by Peter Reichenbach 9 months 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.

#2 Updated by Peter Reichenbach 9 months 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.

#3 Updated by Richard Haeser 8 months ago

  • Category changed from Localization to SEO

#4 Updated by Richard Haeser 8 months 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?

#5 Updated by Jonas Eberle about 2 months ago

  • Related to Bug #89462: hreflang missing for languages with fallbackType: fallback added

#6 Updated by Richard Haeser 10 days ago

  • Parent task set to #89797

#7 Updated by Richard Haeser 10 days ago

  • Related to Bug #88545: Behaviour canonical link and HTML lang tag in language overlay added

Also available in: Atom PDF