FYI this link hijacks the back button. You might want to use history.replaceState() instead of a regular redirect.