-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASP .NET 8 RC1 Routing & UseStaticFiles #50707
Comments
Thank you for filing this issue. In order for us to investigate this issue, please provide a minimal repro project that illustrates the problem without unnecessary code. Please share with us in a public GitHub repo because we cannot open ZIP attachments, and don't include any confidential content. |
catchall routes also looks like are having this problem too. |
Minimal repro project: https://github.com/Github-Butler/Issue50707 |
I'm seeing same issue going from Preview 7 to RC 1 with no other code changes. My controller route with this pattern now catches requests for physical files that I'm certain are in the wwwroot folder.
|
This seems to be caused by the global implicit router running before the static files middlware. @captainsafia you did fix something in this area recently, didn't you? |
Yes, this issue was resolved in #50864. You can try the .NET 8 nightlies in github.com/dotnet/installers to see if that resolves the issue for your scenarios. |
Problem resolved in ASP .NET Core 8 RC2 |
Thanks for following up! Closing this issue now. |
breaking change from preview 7 to RC1:
using the page Weather.razor with route wildcard @page "/{weather?}" worked perfectly and the static file /bootstrap/bootstrap.min.css was delivered as expected.
After upgrade to RC1 the static file route /bootstrap/bootstrap.min.css was ignored.
The text was updated successfully, but these errors were encountered: