Basically I've got a request to /auth/v1/magiclink containing redirect_to in the body along with the email, however when clicking the email link it does not redirect to the specified url.
I've been doing some tests and it seems it is defaulting to the url where the request was made from, e.g. if I fill in the sign in form and make the request on myapp .com/login then I am redirected to myapp .com/login and if I do it from myapp .com/another-url i am then redirected to that url.
Anyone able to help with this? For now I've hard-coded the redirect url into my supabase email templates, which works I guess but isn't ideal.