Expanded menu items makes entitysubmenu go haywire

Created on 27 July 2021, over 3 years ago
Updated 1 May 2023, over 1 year ago

Problem/Motivation

We have menu items where the users can select "Expand" or not (Drupal Core behaviour).
When using these options entity submenu block printed out all "Expanded" menu items regardless of the current menu item and it's active trail.

For example:
Start
Questions
- Questions one
Services
- Service one
Here we place a entity submenu block.
This would even print: questions and questions one and start ....

Steps to reproduce

Make use of the "Expand" checkboxes on a menu item.

Proposed resolution

See attached patch.
Copied page of core code that is in "SystemMenuBlock.php"

Remaining tasks

Review

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium Mschudders

Live updates comments and jobs are added and updated live.
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.

Production build 0.71.5 2024