mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 16:14:39 +00:00
fix (edge): disable automatic open office files in the browser
This commit is contained in:
@@ -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/") {
|
||||
|
||||
Reference in New Issue
Block a user