use window.location.replace