How should we merge the URL query string?
Currently we have $comps['query']
extracted from the URL string, and $params
with extra parameters. If both are set, we parse $comps['query']
and merge $params
in, with any parameters in $params
overwriting parameters with the same name in $comps['query']
. This means set_param()
will consistently overwrite a parameter, regardless of where it came from. Currently, remove_param()
does not remove parameters in $comps['query']
. It might be better to simply concatenate the two components and never parse $comps['query']
.