My factory looks like:
\'use strict\'; angular.module(\'myApp\') .factory(\'httpInterceptor\',[\'$q\',\'$location\', \'$rootScope\', function($q, $locatio
There are certain cases where $location will not redirect if it is outside angular's apply cycle. Try wrapping the $location inside the $apply.
$rootScope.$apply( function(){$location.path('/somelocatin'); } );