Menu higlights different item then side that is shown. #4755
Unanswered
djmj
asked this question in
PrimeFaces Templates
Replies: 1 comment 1 reply
-
|
Yep it looks like a bug that the menu change is triggered on that menu click not on page load. So clicking the link sets the new cookie value but just loading the bookmarked URL does not. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Premium menus have a problem with highlighting the item based on which view is shown.
As long you use the menu for navigation everything works fine. I guess cause they store the expanded items in the cookies.
But if you access a subsite directly by typing URL in browser or through a different link (outside the menu) it will not reflect this change.
Reproduce - Freya showcase
Still the menu path to "Form-Layout" is highlighted.
Wished behavior
I am not sure what the cookie
freya_expandeditemsis really doing. But i guess it keeps the expanded items state. Usefull in case multiple expanded menues shall be keept expanded across page navigation.Is there another use case?
Else the currently selected highlighted menu item should reflect the page URL instead. On duplicate entries the cookie entry could win if only one is allowed to be expanded.
Beta Was this translation helpful? Give feedback.
All reactions