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 on /assets/errors.css
#1316
Comments
@Peffi @pedrorijo91 anyone working on this issue to resolve? if not i can take this issue. |
This comment has been minimized.
This comment has been minimized.
I think the issue is that in the production site, we end up with asset files tagged with their hash, like:
whereas in a development environment, it will process the scss on the fly as necessary from the source files. (But I'm pretty ignorant of rails asset pipeline stuff in general). In the error view page we use some rails magic to get the right name: git-scm.com/app/views/layouts/errors.html.erb Lines 15 to 17 in fcf5b8b
But the static 404 page just mentions the name directly: Line 8 in fcf5b8b
Which kind of make sense. We aren't processing those files as templates, so they can't use the rails magic. We could make them into views, but especially for a I also wonder if |
@peff I tested the bogus page and css didn't render as expected. It works on local space. I was checking Ruby doc and reached to this section. As mentioned this is the preferred but insecure way for error pages. Yes, we didn't utilise |
If you visit a bogus page like
https://git-scm.com/doesnotexist
, you'll get a 404. But it refers to/assets/errors.css
as a stylesheet. And we don't actually serve that. I'm not sure if that's intentional (and we need to upset the 404 page not to refer to it), or if something is broken in our asset pipeline. There is anassets/stylesheets/errors.scss
in the repo, but that path does not work either.AFAICT this isn't really hurting anything, but I'd like to clean it up and I'm not sure how. Anyone with rails expertise want to weigh in?
The text was updated successfully, but these errors were encountered: