The last one is not a problem at all, I just don't feel right about it You use $window.location.href instead $location.absUrl(). They seem to do the same, but since you don't use any other $window stuff, using $location makes more sense to me.