Menu link edit & delete routes do not retain the current language

Created on 25 November 2015, almost 9 years ago
Updated 29 January 2023, over 1 year ago

Problem/Motivation

The 'Edit' link for custom menu links does not contain the language prefix of the current language, so it always takes you to the edit page in the default language.

Steps to reproduce

  1. Install Drupal
  2. Enable Language and Configuration translation
  3. Create a node and add a link to the main menu
  4. Switch to another language and go to the main menu admin page (e.g. /fr/admin/structure/menu)
  5. See that the 'Edit' button for the default home link points to /fr/admin/structure/menu/link/standard.front_page/edit
  6. See that the 'Edit' button for the custom link points to /admin/structure/menu/item/1/edit

Expected result would be the edit link points to /fr/admin/structure/menu/item/1/edit to reflect the current language.

Proposed resolution

Ensure that the menu edit links for custom menu items use the current language prefix.

Remaining tasks

  1. Write patch
  2. Review

User interface changes

Update the menu edit links to add the current language prefix.

πŸ› Bug report
Status

Needs work

Version

9.5

Component
Language systemΒ  β†’

Last updated 1 day ago

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

πŸ‡«πŸ‡·France cFreed

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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.

Production build 0.71.5 2024