Skip to content

Commit

Permalink
Merge pull request #41517 from nextcloud/backport/41356/stable26
Browse files Browse the repository at this point in the history
[stable26] fix(files): prevent redirect on heading column sort
  • Loading branch information
solracsf authored Nov 16, 2023
2 parents ec5006a + a9f9648 commit 231a0e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,10 @@
if (this.$table.hasClass('multiselect')) {
return;
}

// Ensure the url does not change
e.preventDefault();

var $target = $(e.target);
var sort;
if (!$target.is('a')) {
Expand Down

0 comments on commit 231a0e2

Please sign in to comment.