Render baseurl without trailing slash

The webapp expects it like this currently, because the url is only a
string.
This commit is contained in:
Eike Kettner
2021-01-21 21:42:08 +01:00
parent b9b554980a
commit 0ec620fcf0
2 changed files with 8 additions and 2 deletions

View File

@ -36,8 +36,8 @@ object Flags {
)
private def getBaseUrl(cfg: Config): String =
if (cfg.baseUrl.isLocal) cfg.baseUrl.path.asString
else cfg.baseUrl.asString
if (cfg.baseUrl.isLocal) cfg.baseUrl.rootPathToEmpty.path.asString
else cfg.baseUrl.rootPathToEmpty.asString
implicit val jsonEncoder: Encoder[Flags] =
deriveEncoder[Flags]