Skip to content

When using a querystring with Blazor apps the the default NavItem is not selected. #31312

@PaulSinnema

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

Pillar: Technical DebtPriority:2Work that is important, but not critical for the releasearea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futuregood first issueGood for newcomers.help candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. team

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions