diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 26eae076d4..26ff1a076c 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -1616,13 +1616,15 @@ function ui_pagination ($count, $url = false, $offset = 0, // Pagination links for users include delete, create and other params, now not use these params, and not retry the previous action when go to pagination link. $remove = array("user_del","disable_user","delete_user"); - $finalUrl = $config['homeurl'].'?'; - foreach($_GET as $index => $get){ - if(!in_array($index, $remove)){ - $finalUrl .= $index.'='.$get.'&'; + $url = explode("&",$url); + + $finalUrl = array(); + foreach ($url as $key => $value) { + if(strpos($value, $remove[0]) === false && strpos($value, $remove[1]) === false && strpos($value, $remove[2]) === false){ + array_push($finalUrl,$value); } } - $url = $finalUrl; + $url = implode("&",$finalUrl); /* URL passed render links with some parameter