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

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 authored and techknowlogick committed 2019-10-23 18:26:54 -04:00
1 parent 1e1211c194
commit f9845454cf
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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
}