404 page should not show link to Gitea issues to regular users. #2155

Closed
opened 2025-11-02 04:25:31 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @SagePtr on GitHub (Aug 7, 2018).

Description

When user see 404 page on any gitea repo (for example, visiting repo that was deleted by administrator), link under "404" number says "If you think this is an error, please open an issue on GitHub." and user thinks this is tech support of corresponding repo. Probably this link should appear only on 500 error page (which is really related to gitea issues and should be fixed) and not on 404 error page. Or 500 error page should show this link to anyone, but 404 error page - only to users with admin privileges.

Screenshots

Originally created by @SagePtr on GitHub (Aug 7, 2018). - Gitea version (or commit ref): 59b10e6 - Git version: any - Operating system: any - Database (use `[x]`): any - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) https://try.gitea.io/any/404/page - [ ] No - [ ] Not relevant - Log gist: ## Description When user see 404 page on any gitea repo (for example, visiting repo that was deleted by administrator), link under "404" number says "If you think this is an error, please open an issue on [GitHub](https://github.com/go-gitea/gitea/issues)." and user thinks this is tech support of corresponding repo. Probably this link should appear only on 500 error page (which is really related to gitea issues and should be fixed) and not on 404 error page. Or 500 error page should show this link to anyone, but 404 error page - only to users with admin privileges. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/enhancement label 2025-11-02 04:25:31 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2155