First discussed at
https://answers.netlify.com/t/preserve-query-parameters-on-redirect/2226.
[[redirects]]
from = "/origin"
to = "/new/origin"
status = 301
force = true
query = {one = ":one", two = ":two", three = ":three"}
/origin?one=yes&three=yes&two=yes
,
/origin?one=yes&two=yes&three=yes
,
/origin?one=yes&two=&three=
and
/origin?three=yes&two=&one=
will all work.
Regardless of the order of the parameters, as long as all three are present, we'll redirect.
/origin?one=yes
will not be redirected.