Is there a way to convert the following code snippet:
$location.path('/app/home/' + id).search({x:y});
into this:
$state.go('/app/home/' + id).search({x:y});
I've attempted to make the switch, but I'm struggling to find enough resources on how to accomplish it...