Language Negotiation URL Prefix Not Imported Correctly During Site Installation

Created on 11 June 2024, 7 months ago
Updated 3 July 2024, 6 months ago

Problem/Motivation

The URL prefix for language negotiation is not imported correctly from the configuration during site installation with existing config. Instead, it is overridden by the default value.

Steps to reproduce

1. Go to the "Configure Interface Text Language Detection" page.
2. Enable the URL method for language detection.
3. Configure the URL method to have an empty prefix for the default language.
4. Export the configuration.

The exported configuration in language.negotiation.yml should look like this:

url:
  source: path_prefix
  prefixes:
    uk: ''
    en: en

At this point, language negotiation should work correctly.

5. Install the site using Drush with the existing configuration:

drush si --existing-config

6. Go back to the "Configure Interface Text Language Detection" page.
7. Observe the prefix value for the default language in the form.

Expected Result:

The form should display an empty value for the default language prefix as specified in the configuration.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
Language systemΒ  β†’

Last updated 1 day ago

  • Maintained by
  • πŸ‡©πŸ‡ͺGermany @sun
Created by

πŸ‡ΊπŸ‡¦Ukraine danylevskyi Myrhorod / Ukraine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @danylevskyi
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    Fixes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies. Also, 10.2 is in security mode now.

Production build 0.71.5 2024