소스 검색

Add setting.AppSubUrl for LANDING_PAGE = explore

Add setting.AppSubUrl in case of different ROOT_URL and LANDING_PAGE = explore
Christophe Le Guern 10 년 전
부모
커밋
d61962a18a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/middleware/auth.go

+ 1 - 1
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
 		}