1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-19 16:58:37 +00:00

Use AppSubUrl for more redirections (#8647) (#8651)

Partial backport without changes to locale files.

Fix #8461 - fix misspelling of {{AppSubUrl}} and other misspelling in template
Fixes /explore and organisation redirection
This commit is contained in:
zeripath
2019-10-23 23:27:10 +01:00
committed by techknowlogick
parent 83c90e9ba0
commit 1d10747514
3 changed files with 3 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
// Force redirection when username is actually a user.
if !org.IsOrganization() {
ctx.Redirect("/" + org.Name)
ctx.Redirect(setting.AppSubURL + "/" + org.Name)
return
}