summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/public.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r--apps/files_sharing/js/public.js3
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();