Active trail not set in taxonomy menu

Created on 4 August 2023, over 1 year ago
Updated 5 August 2024, 4 months ago

Problem/Motivation

I have a taxonomy menu with two levels. In its initial state, only the menu-items of the first level are visible. Upon clicking a menu-item with a child menu, the child menu used to be displayed. As of Drupal 9.5.9 or something, the child menu remains hidden because the active trail is not set for the active item in the main menu. This issue still exists in Drupal 10.

Steps to reproduce

Create a taxonomy with more than 1 level. Create a taxonomy menu and put it somewhere on a page. Install Menu Trail By Path, Visit the page with the menu. Click on a parent item. The child menu is not being displayed.

1. Create a taxonomy menu with the following structure:

- item1
-- item1A
-- item1B
- item2
- item3

2. Place the menu block in the sidebar. When you go to 'item1', the submenu containing 'item1A' and 'item1B' does not appear, and hence a visitor can neither see nor click the appropriate links.

The same problem appears in the issue cue of the Taxonomy Menu module, but I reckon it has to do with the Menu Trail By Path instead.

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

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