Skip to content

NavLink Match is Case Sensitive #14959

@sbuchok

Description

@sbuchok

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 fixedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions