Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to programmatically decide if a menu item is selected or not #16

Open
moda20 opened this issue Apr 18, 2023 · 0 comments
Open

how to programmatically decide if a menu item is selected or not #16

moda20 opened this issue Apr 18, 2023 · 0 comments

Comments

@moda20
Copy link

moda20 commented Apr 18, 2023

i am trying to make a menu show up as selected if the current location is equal to the href or if one of it's parts is.
so the item with href : /part1 should be selected if the current location is /part1 or /part1/part2.

currently this seems to not be possible as there is no way to use custom isCurrentURI functions or a regex based solution. is there another way of getting the desired outcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant