Menu paths not updated after updating URL language detection

Created on 31 December 2020, almost 4 years ago
Updated 30 January 2023, over 1 year ago

Problem/Motivation

After updating the URL language detection configuration, the old paths are still used. You have to clear the cache, to refresh the menu paths.

Steps to reproduce

  1. Add a language, for example Danish, and set it as Default under Languages at /admin/config/regional/language
  2. Go to Detection and selection > URL path prefix > Configure and delete the Danish (da) path prefix (da) and save under /admin/config/regional/language/detection/url
  3. See that all paths in menu structure still include da, like /da/admin/reports

Clear the cache, and see that the paths are updated, and work as expected.

Proposed resolution

Clear the cache whenever settings for URL language detection configuration are saved.

Remaining tasks

Update the code.

User interface changes

None

🐛 Bug report
Status

Needs work

Version

10.1

Component
Language system 

Last updated about 23 hours ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇩🇰Denmark ressa Copenhagen

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Production build 0.71.5 2024