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;