While window.location.replace or window.location.href definitely work, I recommend that you take a step back and consider whether you need an Ajax call at all!
Ajax is used to refresh part of the page, and if you partially refresh the page, you will not redirect the user to another page.
So, if you think carefully, you can replace your ajax post with regular mail and redirect the user to another action from the controller itself. This way, you will also follow a much cleaner Post-Redirect-Get pattern.
source share