From 1a737b4f073caa3024284f3c650e897ed0139e6c Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Wed, 23 Mar 2016 21:56:39 -0400 Subject: [PATCH] wopi: pass the url wopi without /contents, to make it more flexible --- js/documents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/documents.js b/js/documents.js index 0af15cf4..42bcec75 100644 --- a/js/documents.js +++ b/js/documents.js @@ -192,7 +192,7 @@ var documentsMain = { } var urlsrc = $('li[data-id='+ documentsMain.fileId +']>a').attr('urlsrc'); - var url = OC.generateUrl('apps/richdocuments/wopi/files/{file_id}/contents?access_token={token}', + var url = OC.generateUrl('apps/richdocuments/wopi/files/{file_id}?access_token={token}', {file_id: documentsMain.fileId, token: encodeURIComponent(result.token)}); documentsMain.url = window.location.protocol + '//' + window.location.host + url;