window.location.replace("www.i_am_going_to_other_site.com");
Using location assign, this will keep the history for you and with using back button, you can go back to the original page
window.location.assign("www.i_am_going_to_other_site.com");
another way to redirect to another page is using pure Js like below
window.location.href="www.i_am_going_to_other_site.com";
