Blazor (Server) route does not match when complex characters are in the url #53262
Closed
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
Milestone
Is there an existing issue for this?
Describe the bug
Kind-of a regression of #16840 (fixed in PR #26769), a route is defined for a page with a placeholder. However, when there are weird characters in the URL it doesn't match the route for the page. This worked in .NET 7 and is broken in .NET 8.
In .NET 8 the route does not match:
Expected Behavior
In .NET 7 the route matches and this is logged:
Steps To Reproduce
Given a component with this route:
And URL:
The
sourceCode
part!@#$%^&*()_+-=[]{}\\|;':\">?./
is url-encoded.Full repro: dotnet-bug.zip
Exceptions (if any)
No response
.NET Version
8.0.100
Anything else?
.NET 7.0:
.NET 8.0, identical code:
The text was updated successfully, but these errors were encountered: