diff --git a/modules/middleware/auth.go b/modules/middleware/auth.go index 3c06c69f8c83..b2aaae101d70 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 }