JQuery Cierrect to URL
$(location).attr('href', 'https://google.com');
Carnivorous Flamingo
$(location).attr('href', 'https://google.com');
window.location.replace("/target-uri");