mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-10-31 02:25:59 +01:00 
			
		
		
		
	Fix the repository url.
This commit is contained in:
		| @@ -29,6 +29,14 @@ abstract class ControllerBase extends ScalatraFilter with ClientSideValidationFo | ||||
|   protected def NotFound()     = html.error("Not Found") | ||||
|   protected def Unauthorized() = redirect("/") | ||||
|  | ||||
|   protected def baseUrl = { | ||||
|     println(request.getRequestURL.toString) | ||||
|     println(request.getRequestURI) | ||||
|     val url = request.getRequestURL.toString | ||||
|     println(url.substring(0, url.length - request.getRequestURI.length)) | ||||
|     url.substring(0, url.length - request.getRequestURI.length) | ||||
|   } | ||||
|  | ||||
| } | ||||
|  | ||||
| case class Context(path: String, loginAccount: Option[Account]) | ||||
		Reference in New Issue
	
	Block a user