title: How to get a state URL without params?
body: <p>I have an state in angular-ui router:  </p>
  
  <pre><code>.state('example', {
      url: '/example?foo&amp;bar',
      templateUrl: '/partials/example.html',
      controller: 'ExampleController'
  })
  </code></pre>
  
  <p>In <em>ExampleController</em>, I do:</p>
  
  <pre><code>console.log($state.href('example', {}, {inherit: false}));
  </code></pre>
  
  <p>Then I navigate my app to <code>/example?foo=1&amp;bar=2</code>.<br>
  I expect that my controller will log just <strong><em>/example</em> (for creating canonical url later)</strong><br>
  But it always log the exactly the current state <code>/example?foo=1&amp;bar=2</code>.  </p>
  
  <p>What I'm doing wrong?<br>
  Thanks</p>