title: How can I get the full url of the current ui-router state?
body: <p>I'm using ui-router for AngularJS; I'm handling the <code>'$stateChangeSuccess'</code> event, and trying to get the full path (after '#') for the current state.  <code>$location.hash()</code> returns an empty string and <code>$state.url</code> returns only the portion of the path that applies to the nested state.</p>
  
  <p>My full path <code>#/a/b</code></p>
  
  <pre><code>$state.url == "/b"
  $locadtion.hash() == ""
  </code></pre>
  
  <p>How can I get <code>#/a/b</code> or <code>/a/b</code>?</p>