diff --git a/js/viewer/viewer.js b/js/viewer/viewer.js index e202155f..a500072b 100644 --- a/js/viewer/viewer.js +++ b/js/viewer/viewer.js @@ -54,7 +54,7 @@ var odfViewer = { var location = filename; } else { //Public page, files app, etc - var location = OC.filePath('documents', 'ajax', 'download.php') + '?path=' + $('#dir').val() + encodeURIComponent(filename); + var location = OC.filePath('documents', 'ajax', 'download.php') + '?path=' + $('#dir').val() + '/' + encodeURIComponent(filename); OC.addStyle('documents', '3rdparty/webodf/editor'); }