summaryrefslogtreecommitdiffstats
path: root/routers/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/home.go')
-rw-r--r--routers/home.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/home.go b/routers/home.go
index 36a4f50fd2..8e973d161b 100644
--- a/routers/home.go
+++ b/routers/home.go
@@ -33,7 +33,7 @@ func Home(ctx *middleware.Context) {
// Check auto-login.
uname := ctx.GetCookie(setting.CookieUserName)
if len(uname) != 0 {
- ctx.Redirect("/user/login")
+ ctx.Redirect(setting.AppRootSubUrl + "/user/login")
return
}