Skip to content

Commit c0a14e4

Browse files
authored
Merge pull request #195 from Learn-Monitor/193-login-page-not-loading-the-template-correctly
Now loading templates correctly again
2 parents 24f40e5 + 8eb3c06 commit c0a14e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/igslandstuhl/database/server/webserver/responses/TemplatingPreprocessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private static String sanitizeTemplateName(String name) {
3232
}
3333

3434
private String getTemplate(String name) throws FileNotFoundException {
35-
ResourceLocation templateLocation = new ResourceLocation("templates", "html", sanitizeTemplateName(name) + ".html");
35+
ResourceLocation templateLocation = new ResourceLocation("templates", "html", sanitizeTemplateName(name));
3636
return Server.getInstance().getResourceManager().readResourceCompletely(templateLocation);
3737
}
3838

0 commit comments

Comments
 (0)