forgejo/routers
Gergely Nagy 9266b1916f
[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)
2024-01-22 18:13:42 +00:00
..
api [GITEA] Make HTTPS schema default for Swagger 2024-01-22 18:13:41 +00: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-22 14:35:03 +00:00
private [CLI] implement forgejo-cli 2024-01-22 12:18:30 +00: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-22 18:13:42 +00:00
init.go [API] Forgejo API /api/forgejo/v1 2024-01-22 13:41:20 +00:00