BlazorStrap icon indicating copy to clipboard operation
BlazorStrap copied to clipboard

Support NavLinkMatch enum in BSNavLink

Open chucker opened this issue 4 years ago • 0 comments

Blazor 3.2 added the ability to specify that the nav link's href should match a prefix of the current URL, rather than the entire URL, so you can do something like:

<NavLink href="Recipes" Match="NavLinkMatch.Prefix">

And go to Recipes?id=123 and have the link still show as active.

BSNavLink currently only supports the old behavior where the entire URL needs to match.

chucker avatar Jun 17 '21 16:06 chucker