From 7e6c198f21ba2696954310184f384fee7c277575 Mon Sep 17 00:00:00 2001 From: schaffman5 Date: Mon, 20 Nov 2017 02:48:09 -0500 Subject: 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 * 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 * 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 * 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 * Removed superfluous conditional and correct whitespace. Signed-off-by: Mike Schaffer * Update app.ini Reverted new line. * Formatting. Signed-off-by: Mike Schaffer --- routers/user/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers') 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 } -- cgit v1.2.3