mirror of https://github.com/go-gitea/gitea.git
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:
parent
83c90e9ba0
commit
1d10747514
|
@ -63,7 +63,7 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
|
||||||
|
|
||||||
// Force redirection when username is actually a user.
|
// Force redirection when username is actually a user.
|
||||||
if !org.IsOrganization() {
|
if !org.IsOrganization() {
|
||||||
ctx.Redirect("/" + org.Name)
|
ctx.Redirect(setting.AppSubURL + "/" + org.Name)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -273,7 +273,7 @@ func ExploreOrganizations(ctx *context.Context) {
|
||||||
// ExploreCode render explore code page
|
// ExploreCode render explore code page
|
||||||
func ExploreCode(ctx *context.Context) {
|
func ExploreCode(ctx *context.Context) {
|
||||||
if !setting.Indexer.RepoIndexerEnabled {
|
if !setting.Indexer.RepoIndexerEnabled {
|
||||||
ctx.Redirect("/explore", 302)
|
ctx.Redirect(setting.AppSubURL+"/explore", 302)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<p>{{.i18n.Tr "auth.authroize_redirect_notice" .ApplicationRedirectDomainHTML | Str2html}}</p>
|
<p>{{.i18n.Tr "auth.authroize_redirect_notice" .ApplicationRedirectDomainHTML | Str2html}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
<form method="post" action="{{.AppSubUrl}}/login/oauth/grant">
|
<form method="post" action="{{AppSubUrl}}/login/oauth/grant">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="client_id" value="{{.Application.ClientID}}">
|
<input type="hidden" name="client_id" value="{{.Application.ClientID}}">
|
||||||
<input type="hidden" name="state" value="{{.State}}">
|
<input type="hidden" name="state" value="{{.State}}">
|
||||||
|
|
Loading…
Reference in New Issue