fix (edge): disable automatic open office files in the browser

This commit is contained in:
MickaelK
2026-06-03 11:24:03 +10:00
parent 0b54dcae15
commit efc04b2466
+6 -1
View File
@@ -11,7 +11,12 @@ export function getFilename() {
}
export function getDownloadUrl() {
return forwardURLParams("api/files/cat?path=" + encodeURIComponent(getCurrentPath()), ["share"]);
return forwardURLParams(
"api/files/cat?"+
"path=" + encodeURIComponent(getCurrentPath()) + "&"+
"name=" + encodeURIComponent(getFilename()),
["share"],
);
}
export function getCurrentPath(start = "/view/") {