Anyone managed to pass multiple query params to th...
# help
j
Anyone managed to pass multiple query params to the
redirectTo
option? I manage to pass one, and if I inspect the invite-link in my email, all the other query params is available in the URL, but they somehow get stripped when the page is loading, and only the first param comes through.
s
Can you share what your link look like, preferably one that has been used already or strip out anything you think is sensitive in the link before posting it here.
j
http://localhost:3000/bjornlunden/invite/?company=${org_id}&company_name=${company_name}&public_key=${public_key}
,
and the url after clicking the link is: http://localhost:3000/bjornlunden/invite?company=552555# I guess everything after the hash gets stripped
s
Try encoding the &'s after that then
Also I don't see any # in the original url#
j
Encode just the & char?
or encodeURIComponent on the whole URL?
s
yeah to html entities
Or you can do the entire url
j
dosen't seem to help with encoding
but the strange thing is that the first frame after opening the URL from the email, all the query params are there, but then everyone but the first one gets stripped away, I wonder if the problem lays in my NextJS app and not supabase
you have any clues @User !?
s
I'm going to test this out in my app now and see if I get the same results
Yeah I got the same result too
That is definitely a bug
j
Aah ok. So you think that it should be possible to add multiple query params and therefore be marked as a bug?