[Blazor SSR] Issue with NavigationManager.NavigateTo and Already Percent-Encoded URLs #53708
Closed
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
Needs: Repro
Indicates that the team needs a repro project to continue the investigation on this issue
Is there an existing issue for this?
Describe the bug
Note: maybe this issue is already fixed with #53138, #53470 but I can't tell. If it is fixed, you can of course close this issue directly.
In Blazor applications, specifically when using Server Side Rendering (SSR) with .NET 8, I've encountered an issue where
NavigationManager.NavigateTo
does not correctly handle navigation when provided with already percent-encoded URLs.Expected Behavior
NavigationManager.NavigateTo
should correctly handle already percent-encoded URLs, allowing for successful navigation without errors.Steps To Reproduce
Create a Blazor Server Side Rendering application using .NET 8.
Attempt to use NavigationManager.NavigateTo to navigate to a URL that contains percent-encoded characters (e.g.,
https://www.nvj.nl/nieuws/offici%C3%ABle-waarschuwing-zonder-wederhoor-mag
).Observe that the navigation does not work as expected, and an error is thrown.
Exceptions (if any)
.NET Version
8.0.200-preview.23624.5
Anything else?
No response
The text was updated successfully, but these errors were encountered: