Skip to content

Blazor: NavigationManager - NavigateTo bug with parameters #52138

@fabiano-ferreira

Description

@fabiano-ferreira

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

After updating to .NET 8, my Blazor application is not working properly anymore.

I have one page where a URL string is being built (with parameters) and then the NavigateTo method is called with NO force Load option.

The parameters I am using are this type:
[Parameter] [SupplyParameterFromQuery(Name = "c")] public string CustId { get; set; }

Until .NET 7.0.14 the page being called by the NavigateTo method was passed the parameters correctly.
However, after I update to .NET 8, now, the parameters are not being passed by a regular NavigateTo method call. Instead, now it ONLY works if I call the NavigateTo method using the forceLoad option set to true.

I don't want to totally reload the page from the server only because of the parameters.

Please, see if this can be fixed.

Thank you!

Expected Behavior

I wanted to call the NavigateTo method with no forceLoad and even though I want the parameters to be passed.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

8.0.0

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-model-binding

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions