"Not in menu" text shown even when a node is in a menu

Created on 10 March 2025, 2 months ago

Problem/Motivation

After updating core to 10.4, the menu widget started showing "Not in menu" summary item, even though the node certainly is in the menu.

Steps to reproduce

Update core to 10.4.something.

Proposed resolution

Currently the MenuLinkWidget.php includes its own version (library menu_link.form) of the JS for adding the summary (The menu item title, or the "Not in menu" text), most likely due to the field name being different than in core. The core library from Menu UI is drupal.menu_ui.

On the MenuLinkWidget.php, both of the libraries mentioned above are added to the elements. To my understanding, as menu_link is providing its own library with the same functionalities, the core library is unnecessary here. And for one reason or another, after the core update, it's being triggered after the menu_link's library.

The solution would be to remove the core's library from being included.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇮Finland iSampo

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