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
I worked around this by using urlEncode directly and adding the square brackets myself. If nobody else was surprised by this behavior in the (at least) six years since urlEncodeVars was introduced, I can deal with it.
When
urlEncodeVars
encounters keys with multiple values, it separates the values with commas. For example:In my experience, the correct way to encode arrays like this is to append
[]
to the key and pass each element as a key-value pair. For instance:Is it possible to change the behavior of
urlEncodeVars
to match my expectation?The text was updated successfully, but these errors were encountered: