Review 14.3 Merged

97225[BUGFIX] Use language 0 as default language of a site

Benni Mack CR +2 V +2 Normal +66 −2 updated 10/30/26, 07:22

Commit message

Site::getDefaultLanguage() returned the first configured language.
If languageId 0 was not the first entry in the site configuration,
another language was treated as default language, e.g. in the page
module or for preview links.

Language 0 is now returned regardless of its position. For such sites
this also affects the frontend: the redirect of the site root, links
generated without a language and "?id=" requests on a site without
a root language base now use language 0 instead of the first entry.

Sites without language 0 keep receiving the first configured
language, so their frontend continues to work.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 1

Files 4

Review log 34

  1. Benni Mack commented on patch set 1 10/30/26, 07:07

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 10/30/26, 07:15 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112833

  3. Benni Mack voted on patch set 1 CR +2 V +2 10/30/26, 07:22

  4. Benni Mack merged patch set 2 10/30/26, 07:22