Base DownloadURL on origin not href

This commit is contained in:
Dustin Brett 2025-06-13 22:34:53 -07:00
parent 4b9e070e5c
commit a112236b08

View File

@ -173,8 +173,8 @@ const useDraggableEntries = (
event.nativeEvent.dataTransfer?.setData(
"DownloadURL",
`${getMimeType(file) || "application/octet-stream"}:${file}:${
window.location.href
}${join(entryUrl, file)}`
window.location.origin
}${encodeURI(join(entryUrl, file))}`
);
}