Issue Bug Closed

#93719Site config: language baseVariants still get removed when saving from GUI

Benjamin Robinson 03/12/21, 11:12 updated 12/06/22, 21:43

Description

If a site contains language baseVariants they will be removed from the .yaml after saving the site config in the backend under certain conditions.

Steps to reproduce:

1. Create config.yaml

base: 'https://www.domain.de/'
baseVariants:
  -
    base: 'https://dev.domain.de/'
    condition: 'applicationContext == "Development"'
languages:
  -
    title: 'Deutsch'
    enabled: true
    base: /
    typo3Language: de
    locale: de_DE.utf8
    iso-639-1: de
    navigationTitle: Deutsch
    hreflang: de-DE
    direction: ''
    flag: de
    languageId: 0
  -
    title: 'English'
    enabled: true
    base: 'https://www.en.domain.de/'
    baseVariants:
      -
        base: 'https://dev.en.domain.de/'
        condition: 'applicationContext == "Development"'
    typo3Language: default
    locale: en_GB.utf8
    iso-639-1: en
    navigationTitle: English
    hreflang: en-DE
    direction: ''
    fallbackType: strict
    fallbacks: ''
    flag: gb
    languageId: 1
    websiteTitle: ''
rootPageId: 2
websiteTitle: ''

2. Clear all caches

3. Edit some setting of the language via Backend GUI, for example change the title ‘English’ -> ‘British English’, or the locale “en_GB.utf8” -> en_US.utf8.

The language’s baseVariants will get removed.

Reviews 2