NavigationManager.Refresh does not make use of optional parameter 'forceReload' #59854
Open
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
Is there an existing issue for this?
Describe the bug
Hey!
I wanted to use
NavigationManager.Refresh(forceReload: false)
on our .NET8 Blazor Server app and noticed thatforceReload
is not being passed through toNavigateTo
, instead theforceReload
ofNavigateTo
defaults totrue
. You can easily see what I mean in this file in line 178:aspnetcore/src/Components/Components/src/NavigationManager.cs
Line 178 in 8d6d208
Expected Behavior
I assume this is not intentional as I cannot come up with a reason why it would be. If the parameter exists one would expect it to be used, right?
Steps To Reproduce
The code is obvious, but
NavigationManager.Refresh(forceReload: false)
reproduces the issue.Exceptions (if any)
None
.NET Version
8.0.x
Anything else?
I think the issue speaks for itsself.
The text was updated successfully, but these errors were encountered: