You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a Nette\Http\Url object from a query with multiple GET parameters of a same name, only the last one is kept.
There is no standard regarding query parameters of the same name, many sites and tools, especially outside PHP world use the notation with multiple parameters of the same name. It'd be nice if Nette Url could correctly interpret these.
Steps To Reproduce
$url = new \Nette\Http\Url('https://www.example.com?filters=color-lightblue&filters=color-blue&filters=color-turquoise');
dump($url->getQuery()); // is ['filters' => 'color-turquoise']
Expected Behavior
The query property of the URL object should be an array of all three filters GET values, the same way as if filters[] notation were used.
Needs to be addressed
I see there is a potential of a BC break and maybe generating a URL string the same way - choosing the notation, maybe by setting a flag.
The text was updated successfully, but these errors were encountered:
When creating a Nette\Http\Url object from a query with multiple GET parameters of a same name, only the last one is kept.
There is no standard regarding query parameters of the same name, many sites and tools, especially outside PHP world use the notation with multiple parameters of the same name. It'd be nice if Nette Url could correctly interpret these.
Steps To Reproduce
Expected Behavior
The query property of the URL object should be an array of all three
filters
GET values, the same way as iffilters[]
notation were used.Needs to be addressed
I see there is a potential of a BC break and maybe generating a URL string the same way - choosing the notation, maybe by setting a flag.
The text was updated successfully, but these errors were encountered: