gitea/routers/common
wxiaoguang 84cbb6c4d2
Fix duplicate sub-path for avatars (#31365)
Fix #31361, and add tests

And this PR introduces an undocumented & debug-purpose-only config
option: `USE_SUB_URL_PATH`. It does nothing for end users, it only helps
the development of sub-path related problems.

And also fix #31366

Co-authored-by: @ExplodingDragon
2024-06-15 11:43:57 +08:00
..
auth.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
compare.go feat(api): implement branch/commit comparison API (#30349) 2024-04-16 11:45:04 +08:00
db.go Avoid cycle-redirecting user/login page (#28636) 2023-12-30 08:48:34 +00:00
errpage_test.go Clean up template locale usage (#27856) 2023-10-31 22:11:48 +08:00
errpage.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
markup.go Use repo as of renderctx's member rather than a repoPath on metas (#29222) 2024-05-30 07:04:01 +00:00
middleware_test.go Fix duplicate sub-path for avatars (#31365) 2024-06-15 11:43:57 +08:00
middleware.go Fix duplicate sub-path for avatars (#31365) 2024-06-15 11:43:57 +08:00
redirect.go Refactor AppURL usage (#30885) 2024-05-07 08:26:13 +00:00
serve.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00