Add the ability to key menu items to avoid duplicate active states #5110
Unanswered
piljac1
asked this question in
Ideas & Feature Requests
Replies: 1 comment 1 reply
-
|
Bump |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We were recently asked to add a menu item that points to a resource index (which is also available in the menu) but with specific filters already applied. However, since the path is the same, both menu items (the resource and the custom menu item) have the
activestyle.It would be great if you could specify a menu key that would be sent as a query param that would later get compared in the active check. By default, menu items wouldn't have a key (so they would rely on the current
activelogic), but if a menu key is present, default menu items would automatically returnfalsein theactivemethod and only the menu item matching this key would returntrue.Of course, slight changes would be needed in the
activemethod to make it work, but the suggested implementation wouldn't be a breaking change, and therefore, would be possible to add in a minor release.Let me know what you guys think,
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions