Skip to content

Commit

Permalink
Merge pull request #39572 from phillip-kruger/not-found-filter-mvnpm-…
Browse files Browse the repository at this point in the history
…webjars

Remove mvnpm and webjars from the 404 page
  • Loading branch information
cescoffier authored Mar 20, 2024
2 parents ad8274e + 3fc4cea commit 55ecf44
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 55ecf44

Please sign in to comment.