diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/PathResource.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/PathResource.java index 62129514ff1..b165ed46837 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/PathResource.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/PathResource.java @@ -83,7 +83,7 @@ public class PathResource extends Resource try { if (Files.isSymbolicLink(path)) - return Files.readSymbolicLink(path); + return path.getParent().resolve(Files.readSymbolicLink(path)); if (Files.exists(path)) { Path real = abs.toRealPath(FOLLOW_LINKS);