Issue Bug Closed

#96646404 endless loop with disabled default language

Alexander Vogt 01/26/22, 08:17 updated 12/06/22, 21:43

Description

Site configuration:

base: 'https://www.example.de'
rootPageId: '1'
errorHandling:
  - errorCode: '404'
    errorHandler: Page
    errorContentSource: 't3://page?uid=5'
languages:
  - title: Deutsch
    enabled: false
    languageId: 0
    base: /de/
  - title: English
    enabled: true
    languageId: 1
    base: /en/

This leads to a 404 endless loop with default language calls (e.g. https://www.example.de/de/unknown).

The issue seems to be in the PageContentErrorHandler url resolver:
https://github.com/TYPO3/typo3/blob/v11.5.5/typo3/sysext/core/Classes/Error/PageErrorHandler/PageContentErrorHandler.php#L237-L246

The “enabled” state of the default language should also be checked.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.