Use $state.go instead of $location.path