Bug #84667

Sites: Unexprected behavior when site-base != language base

Added by Benjamin Kott over 2 years ago. Updated about 2 years ago.

Should have
Link Handling, Site Handling & Routing
Target version:
Start date:
Due date:
% Done:


TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


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:

  rootPageId: 1
  base: 'https://www.mydomain.com/'
      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: {  }

Related issues

Related to TYPO3 Core - Epic #83796: Site Handling Closed 2015-08-09


#1 Updated by Susanne Moog over 2 years ago

#2 Updated by Susanne Moog about 2 years ago

  • Category set to Link Handling, Site Handling & Routing

#3 Updated by Anja Leichsenring about 2 years ago

  • Status changed from New to Closed

fixed meanwhile. The code for the main entry call is actually 307, but the redirect takes places as requested.

Also available in: Atom PDF