Not getting complete URL parameters My url is node/3?filter-value=67&amp;filter-value=80 and when i try to do this code:

$param = \Drupal::request()-&gt;query-&gt;all();`

$param['filter-value']


It shows the value 80 only. I want to get both of them.
if you don't want to change the structure of your url.

you can use Explode function

I have made a helper function try it out:

function getParamsOfUrlWithSameKey(){
  $current_uri = \Drupal::request()-&gt;getRequestUri();
  $items = explode('?', $current_uri);
  $res_param = [];
  if (isset($items[1])) {
    $params = explode('&amp;', $items[1]);
    foreach ($params as $param) {
      $param_value = explode('=', $param);
      $key = $param_value[0];
      $value = $param_value[1];
      $res_param[$key][] = $value;
    }
  }
  return $res_param;
}


The return of this function will be something like:

array:1 [▼
   "filter-value" =&gt; array:2 [▼
     0 =&gt; "67"
     1 =&gt; "80"
   ]
 ]