If I add a `return_to` param to the logout url, th...
# ory-network
l
If I add a
return_to
param to the logout url, the redirect only seems to work if the value is a subpath of one of my allowed urls. It does not work if I try to redirect to just the root/base path. e.g. if I had
https://*.<http://example.com/|example.com/>
in my allowed urls, I can redirect to
<https://foo.example.com/bar>
but I can’t redirect to
<https://foo.example.com/>
.
f
interesting, what error do you get?
l
No error. It actually redirects me to my custom UI base url for some reason.
f
so, in summary, return_to is ignored if it's a root url?
l
Sort of. If I don’t add any
return_to
param, it redirects to /ui/welcome, which is what I have set up as my default global redirect.
I’ll DM you some screenshots.
👍 1