forgejo/routers
Gergely Nagy 8fa5ff65af
[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)
(cherry picked from commit 1868dec2e4)
(cherry picked from commit c3a8e98870)
(cherry picked from commit 9266b1916f)
2024-01-28 10:55:00 +01:00
..
api [GITEA] Make HTTPS schema default for Swagger 2024-01-28 10:54:59 +01:00
common Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
install [GITEA] Add password length check on install page 2024-01-28 09:22:15 +01:00
private [CLI] implement forgejo-cli 2024-01-28 07:47:32 +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-28 10:55:00 +01:00
init.go [API] Forgejo API /api/forgejo/v1 2024-01-28 08:13:13 +01:00