Use utils.redirect instead of low-level $window