diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-07-27 13:44:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 13:44:52 +0200 |
commit | fc276ba42f2c4a27e6ee33b6ec3ed427b4f01f75 (patch) | |
tree | 0d3747645340d670849dd92848a4878a4dfd58e9 /apps/files_sharing/js | |
parent | dd6713ff104ec14b0fe75411c1ce78e2f530f77e (diff) | |
parent | 8be9b04981c4f0bdf0a2b8d424f55c797ad90a32 (diff) | |
download | nextcloud-server-fc276ba42f2c4a27e6ee33b6ec3ed427b4f01f75.tar.gz nextcloud-server-fc276ba42f2c4a27e6ee33b6ec3ed427b4f01f75.zip |
Merge pull request #33373 from nextcloud/techdebt/noid/remove-legacy-dir
Remove legacy #dir element in files list
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/public.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index c08d72d6e05..91883138845 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -45,7 +45,8 @@ OCA.Sharing.PublicApp = { OCA.Files.fileActions = fileActions; this._initialized = true; - this.initialDir = $('#dir').val(); + var urlParams = OC.Util.History.parseUrlQuery(); + this.initialDir = urlParams.path || '/'; var token = $('#sharingToken').val(); var hideDownload = $('#hideDownload').val(); |