Cómo redirigir al usuario a cualquier URL específica usando JavaScript.
const redirect = url => location.href = url
/* call redirect (url) whenever you want to redirect the user to a specific url */
Combative Centipede