From: Hypolite Petovan Date: Fri, 9 Dec 2022 21:24:37 +0000 (-0500) Subject: Fix wrong condition when redirecting to filtered log view in admin/logs X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=85db7168943cb5ed3fbb9ab123e4c1116837922d;p=friendica.git Fix wrong condition when redirecting to filtered log view in admin/logs - Address https://friendica.xyz/display/adf174d5-1563-937d-3cd7-2df680918252 --- diff --git a/view/theme/frio/js/module/admin/logs/view.js b/view/theme/frio/js/module/admin/logs/view.js index 9faf9ec890..ab07882d27 100644 --- a/view/theme/frio/js/module/admin/logs/view.js +++ b/view/theme/frio/js/module/admin/logs/view.js @@ -6,7 +6,7 @@ $(function(){ var value = this.dataset.filterValue; var re = RegExp(filter+"=[a-z]*"); var newhref = location.href; - if (!location.href.indexOf("?") < 0) { + if (location.href.indexOf("?") < 0) { newhref = location.href + "?" + filter + "=" + value; } else if (location.href.match(re)) { newhref = location.href.replace(RegExp(filter+"=[a-z]*"), filter+"="+value);