Forgejo/routers
Gergely Nagy 44078e5460
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>
2024-01-01 23:29:33 +01:00
..
api [GITEA] Revert "Deprecate query string auth tokens (#28390)" 2024-01-01 15:36:17 +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-01 15:20:55 +01:00
private [CLI] implement forgejo-cli 2024-01-01 13:02:36 +01:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web repo: Don't redirect the repo to external units 2024-01-01 23:29:33 +01:00
init.go [API] Forgejo API /api/forgejo/v1 2024-01-01 13:50:26 +01:00