When using a querystring with Blazor apps the the default NavItem is not selected. #31312
Description
Describe the bug
This happens in a client side application.
When you use a NavItem in your MailLayout like in the default generated application and you call the application with a querystring f.i. https://localhost:123456/?CourseId=123456 then the first NavItem that normally becomes the selected one is displayed as not selected.
To Reproduce
- Generate a new Blazor Client side application
- Run the application
- In the addressbar of the browser put a querystring behind the url f.i. https://localhost:44381/?CourseId=13333 and press enter
- Notice how the 'Home' menu no longer is selected.
Metadata
Assignees
Labels
Work that is important, but not critical for the releaseIncludes: Blazor, Razor ComponentsThis issue describes a behavior which is not expected - a bug.Features related to the built in components we ship or could ship in the futureGood for newcomers.Indicates that the issues may be a good fit for community to help with. Requires work from eng. team