When adding a view to the menu via the Views UI, I am having an issue where in_active_trail does not appear to be showing true.
When attaching the same view via the main menu, in_active_trail appears to be available which results in active class being added to list item and it renders correctly?
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2023-11-29 at 01.09.46.png | 562.32 KB | 2dareis2do | |
| Screenshot 2023-11-29 at 01.07.05.png | 267.48 KB | 2dareis2do |
Comments
Comment #2
abhaypai commentedFor a bug report we need steps to reproduce the bug.
Comment #3
2dareis2do commented@abhaypal
1. Set up a view
2. Add it to the main menu via the Views UI
3. On front end active class should be added to a href and list item
4, When walking through the code, notice how in_active_trail is set to false even it is currently in_active_trail
Comment #4
lendudeThis sounds like a duplicate of #3359511: [regression] missing menu active trail since Drupal 9.5.9, if you feel like this is addressing a different issue please feel free to reopen this
Comment #5
2dareis2do commented