diff --git a/frontend/src/views/files/OnlyOfficeEditor.vue b/frontend/src/views/files/OnlyOfficeEditor.vue index bfdb2b36..6b452392 100644 --- a/frontend/src/views/files/OnlyOfficeEditor.vue +++ b/frontend/src/views/files/OnlyOfficeEditor.vue @@ -85,12 +85,11 @@ export default { document.head.appendChild(onlyofficeScript); onlyofficeScript.onload = () => { - let fileUrl = `${window.location.protocol}// - ${window.location.host}${baseURL}/api/raw${url.encodePath( + let fileUrl = `${window.location.protocol}//${window.location.host}${baseURL}/api/raw${url.encodePath( this.req.path )}?auth=${this.jwt}`; - let key = Date.parse(this.req.modified).toString() + this.req.path; + let key = Date.parse(this.req.modified).toString() + url.encodePath(this.req.path); key = key.replaceAll(/[-_.!~[\]*'()/,;:\-%+.]/g, ""); if (key.length > 127) { key = key.substring(0, 127);