Use window.location.href for redirection