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

Created on 28 February 2024, 9 months ago
Updated 5 August 2024, 3 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

Fixed

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.71.5 2024