$ location.path ändert sich in einer Factory mit AngularJS nicht

Meine Fabrik sieht aus wie:

'use strict';

angular.module('myApp')
  .factory('httpInterceptor',['$q','$location', '$rootScope', function($q, $location, $rootScope){
    return {
      response: function(response) {

        if(response.success === false) {
console.log("Redirecting");
            $location.path('/login');
            return $q.reject(response);
        }

        return response || $q.when(response);
      }
    }
}]);

Es spuckt das Protokoll aus, ändert aber den Pfad nicht. Was kann ich tun, um dies zu erreichen?