Project

General

Profile

Actions

Bug #88545

closed

Epic #89797: HrefLang / Canonical issues

Behaviour canonical link and HTML lang tag in language overlay

Added by Altan Tosun almost 5 years ago. Updated about 3 years ago.

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

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

If you on a non-translated alternative language page and the fallback language page is shown, the HTML lang tag provides the wrong language code. It provides the code of the chosen language but it what is actually should provide is the code of the overlay language. For example if you are on a non-translated EN page the fallback language DE is shown. In this case the HTML lang tag should be DE but and not EN.

Second, the canonical link points to the path of the EN page like /en/blablabla which delivers the same content like /de/blablabla which is duplicated content. To solve this problem the canonical link of the non-translated page should point to the URL of the fallback/original page.

TYPO3 version: 9.5.7


Files

ext_localconf.php (489 Bytes) ext_localconf.php ./ext_localconf.php Benjamin Serfhos, 2020-05-04 10:46
LanguageFallbackCanonicalGenerator.php (2.53 KB) LanguageFallbackCanonicalGenerator.php ./Classes/Canonical/LanguageFallbackCanonicalGenerator.php Benjamin Serfhos, 2020-05-04 10:46

Related issues 2 (0 open2 closed)

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

Actions
Related to TYPO3 Core - Bug #88020: inconsistencies in hreflang outputClosed2019-03-27

Actions
Actions

Also available in: Atom PDF