Project

General

Profile

Actions

Bug #89871

closed

Epic #89797: HrefLang / Canonical issues

HrefLangGenerator: Wrong links generated with page translations that use a shortcut

Added by Christian Eßl over 4 years ago. Updated about 3 years ago.

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

100%

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

Description

Steps to reproduce:

- Create a site config with the languages "*Default*", "*German*", "*Spanish*"
- Create a page "Page A" and translate it to all languages
- Create a page "Page B" and translate it to all languages
- On "Page A", make the german translation to a "Shortcut" to "Page B"
- Now open the spanish version of "Page A".

Expected:
- The hreflang for "de" looks like https://www.sitename.com/de/page-b

Actual:
- The hreflang for "de" now looks like https://www.sitename.com/es/page-b
- This will also easily result in a 404 error, if the page title is different in the translation.

The HreflangGenerator incorrectly uses the language parameter of the current language instead of the one of the target language, if shortcuts are used.


Related issues 5 (0 open5 closed)

Related to TYPO3 Core - Bug #81657: TSFE->page contains default language page when content_fallback; 1,0 is usedClosed2017-06-21

Actions
Related to TYPO3 Core - Bug #86595: No Language FallbackClosedAnja Leichsenring2018-10-08

Actions
Related to TYPO3 Core - Bug #19114: sys_language_mode content_fallback with a defined fallback chain does not output expected fallback content Closed2008-07-16

Actions
Related to TYPO3 Core - Bug #94677: Menu-item of type "shortcut" is language-overlayed twiceClosed2021-07-30

Actions
Related to TYPO3 Core - Task #95966: Wrong tests for #89871Closed2021-11-12

Actions
Actions

Also available in: Atom PDF