Project

General

Profile

Actions

Bug #88020

closed

Epic #89797: HrefLang / Canonical issues

inconsistencies in hreflang output

Added by Peter Reichenbach over 5 years ago. Updated over 3 years ago.

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

100%

Estimated time:
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.


Files

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

Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #89462: hreflang missing for languages with fallbackType: fallbackClosed2019-10-21

Actions
Related to TYPO3 Core - Bug #88545: Behaviour canonical link and HTML lang tag in language overlayClosed2019-06-12

Actions
Related to TYPO3 Core - Bug #100813: Tags "hreflang" missing on pages with fallback language behaviorNew2023-05-05

Actions
Actions #1

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.

Actions #2

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.

Actions #3

Updated by Richard Haeser over 5 years ago

  • Category changed from Localization to SEO
Actions #4

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?

Actions #5

Updated by Jonas Eberle about 5 years ago

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

Updated by Richard Haeser almost 5 years ago

  • Parent task set to #89797
Actions #7

Updated by Richard Haeser almost 5 years ago

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

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.

Actions #9

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

Actions #10

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

Actions #11

Updated by Richard Haeser almost 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions #13

Updated by Matthias Vossen over 1 year ago

  • Related to Bug #100813: Tags "hreflang" missing on pages with fallback language behavior added
Actions

Also available in: Atom PDF