diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 76fb06c91fbf8..1e2bd6b47cb78 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2294,6 +2294,12 @@ this.setFiles(result); if (this.dirInfo) { + // Make sure the currentFileList is the current one + // When navigating to the favorite or share with you virtual + // folder, this is not correctly set during the initialisation + // otherwise. + OCA.Files.App && OCA.Files.App.updateCurrentFileList(this); + var newFileId = this.dirInfo.id; // update fileid in URL var params = {