mansueli
05/23/2022, 3:25 PMredirectTo
is meant only for OAuth providers. It isn't there to redirect back users to the pages where they were.
It won't work for what you are looking for. I assume you could use cookies/client side to save the user's location and redirect there after a successful login.