Active trail not calculated correctly for Views menu items

Created on 19 September 2023, over 1 year ago
Updated 19 February 2024, 10 months ago

Problem/Motivation

Active trails are not calculated correctly for menu items created with views. This is caused by the the fact that view page routes contain the view_id and display_id parameters, which are not saved in the menu_tree table.

Steps to reproduce

1. Install a site with the olivero theme
2. Create a view page
3. In the view settings, under Page settings > Menu, add Normal menu entry under main menu
4. Visit the view page
5. Inspect the HTML of the menu link. The link does not have any active trail classes (e.g. is-active)

Proposed resolution

Change the way views menu links are saved. They should also store the view_id and display_id parameters.

🐛 Bug report
Status

Closed: duplicate

Version

10.1

Component
Views 

Last updated 2 days ago

Created by

🇷🇴Romania stefan.butura

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

Comments & Activities

Production build 0.71.5 2024