Browse Source

Add setting.AppSubUrl for LANDING_PAGE = explore

Add setting.AppSubUrl in case of different ROOT_URL and LANDING_PAGE = explore
pull/1055/head
Christophe Le Guern 10 years ago
parent
commit
d61962a18a
  1. 2
      modules/middleware/auth.go

2
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
}

Loading…
Cancel
Save