-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Nested 500 page inside a page #24104
Comments
Did some check, and I think the issue might come from somewhere around here, but not very sure. |
Internal server error is related to #23738 (comment) |
The duplicate |
got it, i will fix the backend error. |
Show friendly 500 error page to users and developers #24110 This PR will help you. |
Close #24104 This also introduces many tests to cover many complex error handling functions. ### Before The details are never shown in production. <details>  </details> ### After The details could be shown to site admin users. It is safe. 
Description
The position of 500 error might be incorrect if an error occurs inside a nested template. In the example below, the error occurs in line 694 of
comments.tmpl
, and this 500 error page was nested around this place where the error occurs.default.mov
Steps to reproduce:
And the following JS error occurs because when the 500 error page is nested, there will be two
head_script.tmpl
withwebcomponents.js
imported twice. This error will be fixed if 500 page is not nested.Gitea Version
latest
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
On macOS:
Database
None
The text was updated successfully, but these errors were encountered: