Skip to content

Commit

Permalink
fix(files): prevent redirect on heading column sort
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv authored and backportbot-nextcloud[bot] committed Nov 15, 2023
1 parent ec5006a commit a9f9648
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 a9f9648

Please sign in to comment.