Skip to content

Commit 1ca7165

Browse files
committed
Trigger "changeDirectory" even on URL change
When using the browser back button or clicking on sections on the left sidebar (like favorites), the "changeDirectory" jQuery event did not get called, so apps like recommendations would not notice the directory change. This fixes the issue by also setting changeUrl to true when the file list's directory got changed as a result from a URL change. Note that in the past this argument was there to prevent repushing the same URL to the history stack but is obsolete already as there's a check in place to not push again whatever is already there. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
1 parent 6c3e982 commit 1ca7165

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files/js/filelist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@
794794
if( (this._currentDirectory || this.$el.find('#dir').val()) && currentDir === e.dir) {
795795
return;
796796
}
797-
this.changeDirectory(e.dir, false, true);
797+
this.changeDirectory(e.dir, true, true);
798798
}
799799
},
800800

0 commit comments

Comments
 (0)