aboutsummaryrefslogtreecommitdiff
path: root/internal/context
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-04 02:02:12 +0800
committerGitHub <noreply@github.com>2020-03-04 02:02:12 +0800
commit8df335025278dd85319265865d47fd73a495e6da (patch)
treec7d8490d50e6e28f6a06c2dfe233bdbd74292061 /internal/context
parent931da04dc2c7bdc078ded191b4d44d1e1f0d161b (diff)
auth: redirect landing URL with subpath prepended (#5964)
Diffstat (limited to 'internal/context')
-rw-r--r--internal/context/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/context/auth.go b/internal/context/auth.go
index 6d1b9262..f99a0bb2 100644
--- a/internal/context/auth.go
+++ b/internal/context/auth.go
@@ -41,7 +41,7 @@ func Toggle(options *ToggleOptions) macaron.Handler {
// Check non-logged users landing page.
if !c.IsLogged && c.Req.RequestURI == "/" && conf.Server.LandingURL != "/" {
- c.Redirect(conf.Server.LandingURL)
+ c.SubURLRedirect(conf.Server.LandingURL)
return
}