Add a state parameter in the returnTo URL

in a separate file