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
But I suspect a more general solution should be found. Or if only scalars and arrays of scalars are accepted, maybe this is sufficient. I don't know enough about SQLPage internals and assertions to really know.
I'll happily open the PR if you think it's enough, to satisfy my own vanity 😉
Edit: It can be a bit more sophisticated, removing only quotes at the beginning and end of the file, something along:
if val.startswith(") and val.endswith(") then val[1:len-1]
The text was updated successfully, but these errors were encountered:
Introduction
The
sqlpage.link
function, when passed a list of parameters, serialize the values of the list with their JSON"
, which are then percent-encoded.I think they should not be added to the URL.
To Reproduce
Query this file like this: `/?tags[]=tag_a
Actual behavior
After following these steps, what happened ?
If you saw an error on the command line or inside your page, then paste it here
Expected behavior
Version information
main
Additional context
Here's a dirty patch I wrote that indeed fixes the issue in my case:
But I suspect a more general solution should be found. Or if only scalars and arrays of scalars are accepted, maybe this is sufficient. I don't know enough about SQLPage internals and assertions to really know.
I'll happily open the PR if you think it's enough, to satisfy my own vanity 😉
Edit: It can be a bit more sophisticated, removing only quotes at the beginning and end of the file, something along:
The text was updated successfully, but these errors were encountered: