as brian suggests replace window.location with Router.go