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
- Install Drupal
- Enable Language and Configuration translation
- Create a node and add a link to the main menu
- Switch to another language and go to the main menu admin page (e.g.
/fr/admin/structure/menu
) - See that the 'Edit' button for the default home link points to
/fr/admin/structure/menu/link/standard.front_page/edit
- 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
- Write patch
- Review
User interface changes
Update the menu edit links to add the current language prefix.