title: AngularJs ui-router $location or $state?
body: <p>How can I transform this: </p>
  
  <pre><code>$location.path('/app/home/' + id).search({x:y});
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>$state.go('/app/home/' + id).search({x:y});
  </code></pre>
  
  <p>I tried, but I actually can't get enough information how to achieve that...</p>