BlazorStrap
BlazorStrap copied to clipboard
Support NavLinkMatch enum in BSNavLink
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.