//its actually
window.location.href = "/App/Home"
//or
window.location.href = "https://www.google.com/"
window.location.href = link;
// or
window.location.assign(link);
The window.location.href property returns the URL of the current page.
// Écrivez votre code ici
window.location.href
window.location.pathname + window.location.search