Use the correct path prefix for a language instead of langcode.

Created on 28 February 2024, 4 months ago
Updated 3 March 2024, 4 months ago

Problem/Motivation

Currently, in some places, the code is using the langcodes as the path prefixes for URL negotiation rather than using the configured path prefixes. Often these are the same, but not always.

Steps to reproduce

Proposed resolution

Update the logic to use the path prefix instead of langcode, e.g.

$prefixes = \Drupal::config('language.negotiation')->get('url.prefixes');

Remaining tasks

  • Update code
  • Review and test
  • Commit :)

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

Production build 0.69.0 2024