Menu Link Content duplicates

Created on 2 September 2025, about 2 months ago

Problem/Motivation

The MenuLinkContent creates translation menu items, which is fine, this in turn triggers the update hook in the .module (this is where it gets tricky, now a new source is created in the hook callback function.

Steps to reproduce

Select a menu link source string to translate (check the filters needed on top to show items), translate the item, now a new item should be present (maybe refresh page is needed), this is the "duplicate" (its actually the source generated for the new translation item.

Proposed resolution

I thought about it, we could either
A) hide the newly created item, and show only the english sources (since the translation text is loaded into it anyway depending on the language selected).
B) show the source created from the translation, replacing the english original when such a translation is available, or
C) not create a new source for translations in the first place

Remaining tasks

decide variant or maybe even a new one D) ?

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇷🇴Romania andras_szilagyi

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024