Actions
Bug #94207
openHreflang / Language Menu have a wrong fallback to the default language
Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2021-05-27
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
I have the following setup like in the core seo hreflang tests.
rootPageId: 1 base: http://localhost/ languages: - title: English enabled: true languageId: 0 base: / typo3Language: default locale: en_US.UTF8 iso-639-1: en navigationTitle: English hreflang: en-US direction: ltr flag: en-us-gb websiteTitle: '' - title: German enabled: true base: /de/ typo3Language: de locale: de_DE.UTF8 iso-639-1: de websiteTitle: '' navigationTitle: Deutsch hreflang: de-DE direction: ltr fallbackType: strict fallbacks: '' flag: de languageId: 1 - title: 'Swiss German' enabled: true base: /de-ch/ typo3Language: de locale: de_CH.UTF8 iso-639-1: de websiteTitle: '' navigationTitle: Schweiz hreflang: de-CH direction: ltr fallbackType: fallback fallbacks: '1' flag: ch languageId: 2
So the language 2 points only to language 1 as fallback, not to the default language. When there is no translation given, I can not call the url /de-ch/ without an error. But in the language menu and hreflang this version is specified. Correct would be:
1. If there is no translation, don't show any hreflang.
2. Specify the hreflang for language 2, if there is a translated record in lanuage 1 or language 2.
Actions