Change your state using $state.go to be more consistent - stop using $location.path.