One thing on this. In the options, also pass in ```replace: true``` so that it doesn't add another history state. It will just replace the current state it added with the new one. If you don't do that, you get in a situation where you can't go back before the redirect