diff --git a/modules/context/org.go b/modules/context/org.go index 12d5dbfbf..409118979 100644 --- a/modules/context/org.go +++ b/modules/context/org.go @@ -62,7 +62,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 } diff --git a/routers/home.go b/routers/home.go index dbe27bd42..79926e32f 100644 --- a/routers/home.go +++ b/routers/home.go @@ -272,7 +272,7 @@ func ExploreOrganizations(ctx *context.Context) { // ExploreCode render explore code page func ExploreCode(ctx *context.Context) { if !setting.Indexer.RepoIndexerEnabled { - ctx.Redirect("/explore", 302) + ctx.Redirect(setting.AppSubURL+"/explore", 302) return } diff --git a/templates/user/auth/grant.tmpl b/templates/user/auth/grant.tmpl index 85c507a74..7ac8f18df 100644 --- a/templates/user/auth/grant.tmpl +++ b/templates/user/auth/grant.tmpl @@ -16,7 +16,7 @@

{{.i18n.Tr "auth.authroize_redirect_notice" .ApplicationRedirectDomainHTML | Str2html}}

-
+ {{.CsrfTokenHtml}}