diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-07-05 13:16:32 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-07-05 15:55:00 +0000 |
commit | 6ffe042d01ebd76ef3dfbed55772e5983d21d0c3 (patch) | |
tree | 7b0c9b2e03bebc751024ef744955075f4240ec3e | |
parent | a49a1d6a01b9ae928286e5b414a5807d4033f5e7 (diff) | |
download | nextcloud-server-6ffe042d01ebd76ef3dfbed55772e5983d21d0c3.tar.gz nextcloud-server-6ffe042d01ebd76ef3dfbed55772e5983d21d0c3.zip |
Fix 404 when using index.php in the url
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
(cherry picked from commit ee793572cb9acc9d688b1ff191a59e8699af9da1)
-rw-r--r-- | apps/files/js/files.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 603ff9b704f..ec306232193 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -25,7 +25,9 @@ state.call.abort(); } state.dir = currentDir; - state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats') + '?dir=' + encodeURIComponent(currentDir),function(response) { + state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats', { + dir: currentDir, + }), function(response) { state.dir = null; state.call = null; Files.updateMaxUploadFilesize(response); @@ -37,7 +39,7 @@ }, _updateStorageQuotas: function() { var state = Files.updateStorageQuotas; - state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats'),function(response) { + state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats'), function(response) { Files.updateQuota(response); }); }, |