ASP .NET 8 RC2 Routing & UseStaticFiles #51677
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
Status: Resolved
Is there an existing issue for this?
Describe the bug
This is the same bug as #50707 , except when using an Additional Assembly. That is, with an optional parameter in the route, the app is unusable, because all requests to static assets get routed the to the blazor page, not the static asset.
Changing the page directive from
@page "/{PageName?}"
to@page "/"
fixes the issue.I have tried this on rc2 and nightly.
Steps To Reproduce
repository here - https://github.com/OpenEnergyGroup/BlazorApp4
.NET Version
8.0.100-rtm.23526.1
The text was updated successfully, but these errors were encountered: