summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorschaffman5 <mschaff@gmail.com>2017-11-20 02:48:09 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-20 15:48:09 +0800
commit7e6c198f21ba2696954310184f384fee7c277575 (patch)
tree4ace1550d5dac8320ddbbf1ffa6e96030fab35e1 /routers
parentc3b6383b3a91e476c5a6978a0fb355191271a51c (diff)
downloadgitea-7e6c198f21ba2696954310184f384fee7c277575.tar.gz
gitea-7e6c198f21ba2696954310184f384fee7c277575.zip
Apply LANDING_PAGE config options for logged in users (#2894)
* Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'. * Updated comments. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'. * Updated comments. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Removed superfluous conditional and correct whitespace. Signed-off-by: Mike Schaffer <mschaff@gmail.com> * Update app.ini Reverted new line. * Formatting. Signed-off-by: Mike Schaffer <mschaff@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r--routers/user/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/auth.go b/routers/user/auth.go
index eb41e2f994..c353db8984 100644
--- a/routers/user/auth.go
+++ b/routers/user/auth.go
@@ -97,7 +97,7 @@ func checkAutoLogin(ctx *context.Context) bool {
ctx.SetCookie("redirect_to", "", -1, setting.AppSubURL)
ctx.Redirect(redirectTo)
} else {
- ctx.Redirect(setting.AppSubURL + "/")
+ ctx.Redirect(setting.AppSubURL + string(setting.LandingPageURL))
}
return true
}