Bug #84667
closedSites: Unexprected behavior when site-base != language base
0%
Description
When Site handling is used, and the `site-base` is different than any configured `language-base`,
TYPO3 will have the same content of the entrypoint available through 2 different urls that is resulting in duplicate content.
- https://www.mydomain.com/
- https://www.mydomain.com/en/
Actual behavior:
When opening `https://www.mydomain.com` typo3 will display the default language content,
All links generated are correct and are prefixed with `https://www.mydomain.com/en/`
Expected behavior option 1:
Throw a 404 exception because there is no matching configuration for the entrypoint
and typo3 can not calculate the correct language to be used.
Expected behavior option 2:
Throw a 301 and redirect to the entrypoint of the default language `https://www.mydomain.com/en/`
Example Site configuration:
site:
rootPageId: 1
base: 'https://www.mydomain.com/'
languages:
-
languageId: '0'
title: English
navigationTitle: English
base: /en/
locale: en_US.UTF8
iso-639-1: en
hreflang: en-US
direction: ltr
typo3Language: default
flag: us
-
languageId: '2'
title: German
navigationTitle: Deutsch
base: /de/
locale: de_DE.UTF8
iso-639-1: de
hreflang: de-DE
direction: ltr
typo3Language: de
flag: de
fallbackType: fallback
fallbacks: '0'
-
languageId: '1'
title: Dansk
navigationTitle: Dansk
base: '/dk/'
locale: da_DK.UTF-8
iso-639-1: da
hreflang: da-DK
direction: ltr
typo3Language: da
flag: dk
fallbackType: strict
errorHandling: { }