Changing language of a node should change language of menu link, not create translation

Created on 15 January 2020, over 4 years ago
Updated 31 January 2023, over 1 year ago

When you change the language of a node, and there is a menu link for that node, then a translation of the menu link into the new language is automatically created. That's nice, but it's weird that the first translation of the menu link stays too.

  1. Install node, menu_ui and content_translation
  2. Add a second language, e.g. Swedish (admin/config/regional/language)
  3. Enable translation for nodes and menu links (admin/config/regional/content-language)
  4. Create a page in English named "Soup" and check "Provide a menu link"
  5. Check that there is a new menu link and it is only in English (admin/structure/menu/item/1/edit/translations)
  6. Edit the "Soup" page and change its language to Swedish
  7. Check the translations of the menu link

Expected: The menu link should be only in Swedish

Actual: The menu link is in both languages, the original one being in English

I realize there may be cases where the current behavior is the one expected. But my guess is that the expectation quoted above (which btw is directly from a current project of mine) is shared in general.

✨ Feature request
Status

Needs work

Version

9.5

Component
Menu UIΒ  β†’

Last updated 17 days ago

No maintainer
Created by

πŸ‡ΈπŸ‡ͺSweden Arla

Live updates comments and jobs are added and updated live.
  • Needs subsystem maintainer review

    It is used to alert the maintainer(s) of a particular core subsystem that an issue significantly impacts their subsystem, and their signoff is needed (see the governance policy draft for more information). Also, if you use this tag, make sure the issue component is set to the correct subsystem. If an issue significantly impacts more than one subsystem, use needs framework manager review instead.

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    From reading the description that seems correct to me as menu links are content, and would have to be translated also. Seems like the request is for it to be automatic?

    Either way it will need a test.

    Tagging for subsystem maintainer review for their thoughts.

Production build 0.69.0 2024