K
Kinde9mo ago
_.Mass._

redirectTo home with search parameters encodes the ?

Hi, I am passing a redirectTo to app state that contains url search parameters but after login I am redirected to a url with the question mark encoded. I would expect the behaviour to be that I am correctly redirected to a route with search parameters.
app_state: {
redirectTo: '?foo=bar',
}
app_state: {
redirectTo: '?foo=bar',
}
redirects me to: /%3Ffoo=bar
3 Replies
_.Mass._
_.Mass._OP9mo ago
ok, I think I am supposed to use the on_redirect_callback to make sure redirectTo is decoded properly. I am going to give it a go yes that was it, I was able to decode the redirectTo in the on_redirect_callback.
onderay
onderay9mo ago
Looks like you have it, does this solve your use case?
_.Mass._
_.Mass._OP9mo ago
yes, it does. Thank you
Want results from more Discord servers?
Add your server