Fix redirect issue by partially reverting to 956af54 - fixes #1567

This commit is contained in:
Damian Bronecki
2017-05-01 22:18:12 +02:00
committed by Naoki Takezoe
parent df4b1d6f01
commit bef65870d8

View File

@@ -147,6 +147,13 @@ abstract class ControllerBase extends ScalatraFilter
}
}
override def url(path: String, params: Iterable[(String, Any)] = Iterable.empty,
includeContextPath: Boolean = true, includeServletPath: Boolean = true,
absolutize: Boolean = true, withSessionId: Boolean = true)
(implicit request: HttpServletRequest, response: HttpServletResponse): String =
if (path.startsWith("http")) path
else baseUrl + super.url(path, params, false, false, false)
/**
* Extends scalatra-form's trim rule to eliminate CR and LF.
*/