Blazor Catch-All Route ignores razor page routes #42584
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-server
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Is there an existing issue for this?
Describe the bug
When a catch-all route is included (using @page "/{*params)") routing for Razor pages is ignored and the catch-all intercepts routes and never loads the razor pages.
Conversely, if a Razor page catch-all is included, Blazor outing is ignored.
Expected Behavior
All routes should be checked and then when no routes match (Blazor or Razor) then the catch-all applies.
Steps To Reproduce
Create a project with both Blazor and Razor pages.
Add a page for each (Blazor and Razor)
Add a Blazor catch-all route
Try to open the Razor page, the Blazor catch-all intercepts
Exceptions (if any)
No response
.NET Version
ASP.NET 6
Anything else?
Endpoint routing:
The text was updated successfully, but these errors were encountered: