Skip to content
Snippets Groups Projects
Commit 0faeadeb authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'f-context-root' into 'dev'

BUG: wrong generation of host root with context root

See merge request caosdb/caosdb-server!35
parents b9ccc09e 8793ab40
Branches
Tags
No related merge requests found
......@@ -101,7 +101,8 @@ public class WebinterfaceUtils {
WebinterfaceUtils(
String host, String contextRoot, String publicDir, String route, String buildNumberFile) {
this.host = host;
this.contextRoot = contextRoot;
this.contextRoot =
contextRoot != null ? contextRoot.replaceFirst("^/", "").replaceFirst("/$", "") : null;
this.publicDir = publicDir;
this.route = route;
this.buildNumberFile = getPublicRootPath().resolve(buildNumberFile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment