https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.routing.navlink.shouldmatch?view=aspnetcore-10.0
NavLink.ShouldMatch(String) Method (Microsoft.AspNetCore.Components.Routing) | Microsoft Learn
Determines whether the current URI should match the link.
navlinkstringmethodmicrosoftaspnetcore