Handle return url on login redirects