Fix error when base url is configured.

This commit is contained in:
takezoe
2014-03-05 22:12:34 +09:00
parent d92a1cee1c
commit b732e0d55a

View File

@@ -143,7 +143,7 @@ abstract class ControllerBase extends ScalatraFilter
*/
case class Context(path: String, loginAccount: Option[Account], request: HttpServletRequest){
lazy val currentPath = request.getRequestURI.substring(path.length)
lazy val currentPath = request.getRequestURI.substring(request.getContextPath.length)
/**
* Get object from cache.