From 85db7168943cb5ed3fbb9ab123e4c1116837922d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 9 Dec 2022 16:24:37 -0500 Subject: [PATCH] Fix wrong condition when redirecting to filtered log view in admin/logs - Address https://friendica.xyz/display/adf174d5-1563-937d-3cd7-2df680918252 --- view/theme/frio/js/module/admin/logs/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);