Skip to content
Snippets Groups Projects
Verified Commit 8793ab40 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

BUG: wrong generation of host root with context root

parent b9ccc09e
No related branches found
No related tags found
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