index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
modules
/
middleware
/
auth.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
无闻 <u@gogs.io>
2015-03-16 04:17:39 -0400
committer
无闻 <u@gogs.io>
2015-03-16 04:17:39 -0400
commit
69025f151043006c3a20577aa357a7fc2bca2f20
(
patch
)
tree
bbfd567ee4234a8a25576f0c13d399015dfe3115
/
modules/middleware/auth.go
parent
588f3215c6c4a82c7ad9cbd2cc6a5683d0ca3cc2
(
diff
)
parent
d61962a18ac384d0b27e1cb178dd4cb59dfc1ef8
(
diff
)
Merge pull request #1055 from c35sys/develop
Add setting.AppSubUrl for LANDING_PAGE = explore
Diffstat
(limited to 'modules/middleware/auth.go')
-rw-r--r--
modules/middleware/auth.go
2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/auth.go b/modules/middleware/auth.go
index 3c06c69f..b2aaae10 100644
--- a/
modules/middleware/auth.go
+++ b/
modules/middleware/auth.go
@@ -30,7 +30,7 @@ func Toggle(options *ToggleOptions) macaron.Handler {
// Checking non-logged users landing page.
if !ctx.IsSigned && ctx.Req.RequestURI == "/" && setting.LandingPageUrl != setting.LANDING_PAGE_HOME {
- ctx.Redirect(string(setting.LandingPageUrl))
+ ctx.Redirect(setting.AppSubUrl + string(setting.LandingPageUrl))
return
}