Merge pull request #41517 from nextcloud/backport/41356/stable26

[stable26] fix(files): prevent redirect on heading column sort
This commit is contained in:
Git'Fellow 2023-11-16 01:09:38 +01:00 committed by GitHub
commit 231a0e2d05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')) {