Skip to content

Commit

Permalink
Merge pull request #41356 from nextcloud/fix/stable27/header-sort-red…
Browse files Browse the repository at this point in the history
…irect

[stable27] fix(files): prevent redirect on heading column sort
  • Loading branch information
blizzz authored Nov 15, 2023
2 parents ef70f79 + 89fb419 commit 20cf4fd
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 @@ -1228,6 +1228,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 20cf4fd

Please sign in to comment.