Skip to content

Commit 21e9c71

Browse files
committed
🐛 windows: only change URL when not copying
1 parent 9733974 commit 21e9c71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/dev/ebullient/convert/qute/ImageRef.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,10 @@ public ImageRef build() {
224224
} else if (sourceUrl.startsWith("stream/")) {
225225
copyToVault = true;
226226
} else if (!sourceUrl.startsWith("file:/")) {
227-
sourceUrl = "file://" + imageRoot.getRootPath() + sourceUrl;
228227
copyToVault = imageRoot.copyInternalToVault();
228+
sourceUrl = copyToVault
229+
? imageRoot.getRootPath() + sourceUrl
230+
: "file://" + imageRoot.getRootPath() + sourceUrl;
229231
}
230232

231233
boolean localTargetSet = relativeTarget != null && vaultRoot != null && rootFilePath != null;

0 commit comments

Comments
 (0)