wopi: pass the url wopi without /contents, to make it more flexible
This commit is contained in:
parent
dc05bb09f5
commit
1a737b4f07
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user