Merge pull request #12374 from MrPetovan/bug/admin-logs-view
Fix wrong condition when redirecting to filtered log view in admin/logs
This commit is contained in:
commit
04d997548c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue