mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Add setting.AppSubUrl for LANDING_PAGE = explore
Add setting.AppSubUrl in case of different ROOT_URL and LANDING_PAGE = explore
This commit is contained in:
		| @@ -30,7 +30,7 @@ func Toggle(options *ToggleOptions) macaron.Handler { | |||||||
|  |  | ||||||
| 		// Checking non-logged users landing page. | 		// Checking non-logged users landing page. | ||||||
| 		if !ctx.IsSigned && ctx.Req.RequestURI == "/" && setting.LandingPageUrl != setting.LANDING_PAGE_HOME { | 		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 | 			return | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christophe Le Guern
					Christophe Le Guern