- π§πͺBelgium michaelsoetaert
The patch in comment #19 β¨ Output multiple values of a query param with repeating param name Needs work didn't apply on Drupal Core
10.0.9
, so I've rerolled it.
Right now the only way to output the url query parameters with multiple values is to use the bracket notation, e.g.
$options = [
'query' => [
'tag' => ['one', 'two'],
],
];
is output as
?tag[0]=one&tag[1]=two
As discussed in π Url only outputs the last value of a query parameter Needs work , this is a PHP-ism and not a web standard. An external system can require an URI to be in the format of
?tag=one&tag=two
Add a new item in the Url's options array that will provide the ability to output multiple values of a query argument by repeating the parameter name.
A new url option multi_value_query_output
with values default and repeat.
Added a way to output multi-valued query arguments by repeating the parameter name.
Needs work
11.0 π₯
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
The patch in comment
#19
β¨
Output multiple values of a query param with repeating param name
Needs work
didn't apply on Drupal Core 10.0.9
, so I've rerolled it.