forgejo/routers
Gergely Nagy 1868dec2e4
[GITEA] repo: Don't redirect the repo to external units
When displaying the repo home view, do not redirect to unit types that
can't be defaults (which, at the moment, are the external wiki and issue
tracker unit types).

If we'd redirect to those, that would mean that a repository with the
Code unit disabled, and an external issue tracker would immediately
redirect to the external issue tracker, making it harder to reach other,
non-external units of the repo.

Fixes #1965.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit 44078e5460)
2024-01-08 17:11:56 +01:00
..
api [GITEA] Revert "Deprecate query string auth tokens (#28390)" 2024-01-08 17:05:47 +01:00
common Avoid cycle-redirecting user/login page (#28636) 2023-12-30 08:48:34 +00:00
install [GITEA] Add password length check on install page 2024-01-08 16:52:44 +01:00
private [CLI] implement forgejo-cli 2024-01-08 13:37:00 +01:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web [GITEA] repo: Don't redirect the repo to external units 2024-01-08 17:11:56 +01:00
init.go [API] Forgejo API /api/forgejo/v1 2024-01-08 14:01:17 +01:00