title: UI Router matching url with hash (fragment)
body: <p>Using UI router I need to match URLs with hash (fragment) included in it (HTML5 mode).</p>
  
  <pre><code>.state('myState', {
              url: '/path/:id/page#:section',
              templateUrl: 'template.html',
              controller: 'MyController'
          });
  </code></pre>
  
  <p>While the setup above works when using ui-sref below..</p>
  
  <pre><code>&lt;a ui-sref="myState({id: 1})"&gt; ... // without hash =&gt; section == ''
  &lt;a ui-sref="myState({id: 1, section: 'abc'})"&gt; ... // section == 'abc'
  </code></pre>
  
  <p>.. it fails when I redirect browser from other page manually by specifying the fragment in the address bar (or when a link including the hash was clicked on totally different site) in that case the URL matcher tries to match against URL without the hash and I am forced to create a new artificial state which is the same as above but without the hash and the param <code>section</code> in it's url property. But that leaves me without possibility to have bookmarkable URL with hash included.</p>
  
  <p>I need to have one state, where this fragment param is optional and is correctly matched by in-app state transition and by url matching mechanism when redirected to the page preserving the given <code>section</code> parameter (if present).</p>