Use .location.href for redirects