Redireccionando el usuario

const redirect = url => location.href = url

/* call redirect (url) whenever you want to redirect the user to a specific url */
Combative Centipede