Skip to content

Commit

Permalink
Remove mvnpm and webjars from the 404 page.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Kruger <[email protected]>
  • Loading branch information
phillip-kruger committed Mar 19, 2024
1 parent fd00af0 commit 3fc4cea
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ public FileVisitResult visitFile(java.nio.file.Path p, BasicFileAttributes attrs
String file = resource.relativize(p).toString();
// Windows has a backslash
file = file.replace('\\', '/');
knownPaths.add(file);
if (!file.startsWith("_static/") && !file.startsWith("webjars/")) {
knownPaths.add(file);
}
return FileVisitResult.CONTINUE;
}
});
Expand Down

0 comments on commit 3fc4cea

Please sign in to comment.