-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
404 error page not rendered on static file routes #2570
Comments
Thanks for the PR, @Lucas-lyh. It made me dig a bit deeper into the issue. I think the problem was introduced with #848 which sets the path prefix to Line 116 in cc7770e
But, Line 156 in cc7770e
This is defined in the ASGI standard to alter the |
Description
As noticed by @Anindya088 (#2568), the 404 error page isn't rendered correctly when accessed via a (sub-)path of a static route. Take this code for example:
When visiting
/static
or/static/subpage
, the HTML page is displayed, but without any CSS and JS assets. They are requested from a wrong path and, thus, not used for rendering the page.The text was updated successfully, but these errors were encountered: