--- a/src/Pure/System/web_app.scala Wed May 29 15:09:48 2024 +0200
+++ b/src/Pure/System/web_app.scala Wed May 29 16:23:48 2024 +0200
@@ -316,13 +316,11 @@
def route(path: Path, params: Properties.T = Nil): String = {
def param(p: Properties.Entry): String = Url.encode(p._1) + "=" + Url.encode(p._2)
- val route =
- if (params.isEmpty) path.implode else path.implode + "?" + params.map(param).mkString("&")
- "/" + route
+ if (params.isEmpty) path.implode else path.implode + "?" + params.map(param).mkString("&")
}
def api_route(path: Path, params: Properties.T = Nil, external: Boolean = true): String =
- route(api_path(path, external = external), params)
+ "/" + route(api_path(path, external = external), params)
def frontend_url(path: Path, params: Properties.T = Nil): Url =
frontend.resolve(route(path, params))