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
Describe the bug
A query parameter is split after the first comma if it contains a comma. For example if the query parameter is A string, with a comma / ?comma=A string%2C containing comma. The page will only receive A string as its query params.
constquery=newURLSearchParams();for(constkinqueryStringParameters){// queryStringParameters = {"q": "A string, with comma"}constvalue=queryStringParameters[k];value.split(', ').forEach((v)=>{query.append(k,v);});}
The text was updated successfully, but these errors were encountered:
adamjkb
added a commit
to adamjkb/kit
that referenced
this issue
May 16, 2021
Describe the bug
A query parameter is split after the first comma if it contains a comma. For example if the query parameter is
A string, with a comma
/?comma=A string%2C containing comma
. The page will only receiveA string
as its query params.To Reproduce
Repo: https://github.com/adamjkb/sveltekit-query-parsing
Deployed Netlify example: https://sveltekit-query-parsing.netlify.app/?comma=A%20string%2C%20containing%20comma&simple=Simple%20string
Expected behavior
To receive full query parameters
Additional context
The issue is caused by the following line in the adapter
The text was updated successfully, but these errors were encountered: