-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
Description
Description of the bug
Enabling any module triggers a menu rebuild that can undo previously moved menu links (and their children) by relocating them back to their original menu, breaking custom menu structures even when the enabled module doesn’t change menus.
Steps To Reproduce
- Go to
/admin/structure/menu/manage/managementand move system-provided links (e.g., “Add content” and its children Card/Page/Post) from the default Administration/management menu intomain-menu; save. - Confirm the links now appear in
main-menu. - Enable an unrelated module (e.g.,
devel) via/admin/modulesordrush en devel. - After enable completes, revisit
/admin/structure/menu/manage/main-menu.
Actual behavior
Some or all moved links (e.g., Card/Page/Post under “Add content”) disappear from main-menu because the enable-time menu rebuild reassigns them back to their default menu. Parent links that were marked customized may remain, while unmarked children revert.
Expected behavior
Enabling a module should not alter existing menu placement. Links moved by a site admin should remain in their chosen menus (including children) after any module enable.
Additional information
- Notes: Backdrop performs a menu rebuild on module enable. Links not marked
customized=1can be reset to their router-default menu during that rebuild.
Reactions are currently unavailable