-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
Let's say you have a NavLink and it has href="/foo/bar"
If you now navigate to a page like so NavigationManager.NavigateTo("/foo/Bar/someotherpage")
The NavLink is not active. This is because "B" is capitalized in Bar.
I think there should be some way for us to override how NavLink determines an active link. Whether this is through a Regex or some function that gets called.
I was able to get what I wanted, however I had to have three page directive on each of about 6 pages and had to ToLower a string. So, low priority for me, but it's pretty rigid for how active gets set.
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.