I noticed a small issue with route.query() when using a URL that has multiple parameters with the same key e.g. /locate?services=10&services=359&services=1248, the property with that key in the query object only has the last value. e.g.
{
services: 1248
}
I've solved this temporarily in my codebase by overriding the query function with the following, which simply checks if a key/value pair already exists, and if it does, it concatenates the current value and the new value into a comma-separated string.
Hi there,
I noticed a small issue with route.query() when using a URL that has multiple parameters with the same key e.g. /locate?services=10&services=359&services=1248, the property with that key in the query object only has the last value. e.g.
I've solved this temporarily in my codebase by overriding the query function with the following, which simply checks if a key/value pair already exists, and if it does, it concatenates the current value and the new value into a comma-separated string.