Skip to content

Commit

Permalink
Check if the absolute path is a directory when scanning for static files
Browse files Browse the repository at this point in the history
and not if the relative one is an directory
This caused the welcome page not to be found in sub directories,
since the KnownPathResourceManager did not know about this specific
folder, and did not return a DirectoryResource
fixes quarkusio#3091
  • Loading branch information
Postremus committed Jul 6, 2019
1 parent 2fbd080 commit 2234e3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void accept(Path path) {
return;
}
Path rel = resource.relativize(path);
if (Files.isDirectory(rel)) {
if (Files.isDirectory(path)) {
knownDirectories.add(rel.toString());
} else {
knownFiles.add(rel.toString());
Expand Down

0 comments on commit 2234e3e

Please sign in to comment.