Bug XF2.3's XF.ajax behaves differently depending on HTTP method for handling data argument

There is a bug in this version
X

Xon

Guest
In XF2.2, XF.ajax supported GET method using $(form).serializeArray() for the data argument. In XF2.3 this fails when using the replacement method XF.Serializer.serializeArray.

Both versions of serializeArray produce the same output format ie;
JSON:

Code:
[
{name:'foo', value: 'bar}
]

In XF2.3, XF.ajax use URLSearchParams to encode the arguments for GET which doesn't support serializeArray output format.
JavaScript:

async ajax (method, url, data = {}...

Read more

Continue reading...