diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-07-06 12:44:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-06 12:44:03 +0200 |
commit | cf6fe95cbf2d031ecd1fba00280d6c3c428d1877 (patch) | |
tree | f8ae65b1ee71d379863b5acb1891fd9c8dd805a0 /apps/files/js/filelist.js | |
parent | 1f9d72853859c1f4f60be243d11cc007420fad9e (diff) | |
parent | 4acb06923d633bba9151237b0f0a88dcf99da7e6 (diff) | |
download | nextcloud-server-cf6fe95cbf2d031ecd1fba00280d6c3c428d1877.tar.gz nextcloud-server-cf6fe95cbf2d031ecd1fba00280d6c3c428d1877.zip |
Merge pull request #25325 from owncloud/filelist-prependslash
Filelist change dir auto-prepend slash
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r-- | apps/files/js/filelist.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 7a7d26eed7c..4f4c833a5f3 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -513,7 +513,7 @@ * Event handler for when the URL changed */ _onUrlChanged: function(e) { - if (e && e.dir) { + if (e && _.isString(e.dir)) { this.changeDirectory(e.dir, false, true); } }, @@ -1429,6 +1429,9 @@ this.setPageTitle(); } + if (targetDir.length > 0 && targetDir[0] !== '/') { + targetDir = '/' + targetDir; + } this._currentDirectory = targetDir; // legacy stuff |