Project

General

Profile

Actions

Bug #84667

closed

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

Added by Benjamin Kott about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
Start date:
2018-04-08
Due date:
% Done:

0%

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

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: {  }


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Epic #83796: Site HandlingClosedBenni Mack2015-08-09

Actions
Actions #1

Updated by Susanne Moog about 6 years ago

Actions #2

Updated by Susanne Moog over 5 years ago

  • Category set to Link Handling, Site Handling & Routing
Actions #3

Updated by Anja Leichsenring over 5 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.

Actions

Also available in: Atom PDF