diff --git a/datashare-app/src/main/java/org/icij/datashare/web/RootResource.java b/datashare-app/src/main/java/org/icij/datashare/web/RootResource.java index 095002ea1..d0b24696e 100644 --- a/datashare-app/src/main/java/org/icij/datashare/web/RootResource.java +++ b/datashare-app/src/main/java/org/icij/datashare/web/RootResource.java @@ -42,7 +42,7 @@ public String getRoot(Context context) throws IOException { String content; if (context.env().classPath() && !index.toFile().isFile()) { StringWriter writer = new StringWriter(); - copy(getClass().getResourceAsStream("/" + Paths.get(context.env().appFolder(), INDEX_HTML).toString()), writer, Charset.defaultCharset()); + copy(getClass().getResourceAsStream("/" + context.env().appFolder() + "/" + INDEX_HTML), writer, Charset.defaultCharset()); content = writer.toString(); } else { content = new String(Files.readAllBytes(index), Charset.defaultCharset());