红糖糍粑
$scope.on_impersonate_success = function(response) {//$window.location.reload();//This cancels any current request$location.path('/');//This works as expected, if path!= current_path};$scope.impersonate = function(username) {return auth.impersonate(username). then($scope.on_impersonate_success, $scope.on_auth_failed);};