diff --git a/app/src/main/java/io/xpipe/app/storage/ContextualFileReference.java b/app/src/main/java/io/xpipe/app/storage/ContextualFileReference.java index eb633259c..063d4c8e3 100644 --- a/app/src/main/java/io/xpipe/app/storage/ContextualFileReference.java +++ b/app/src/main/java/io/xpipe/app/storage/ContextualFileReference.java @@ -89,7 +89,7 @@ public class ContextualFileReference { public String serialize() { var start = getDataDir(); var normalizedPath = normalized(path); - if (normalizedPath.startsWith(start)) { + if (normalizedPath.startsWith(start) && !normalizedPath.equals(start)) { return "" + "/" + FileNames.relativize(start, normalizedPath); } return path;