title: AngularJS routeProvider not adding hash at the end of URL
body: <p>I have the following routeProvider configured:</p>
  
  <pre><code> angular.module('myModule').config ['$routeProvider', (provider) -&gt;
  
     provider
    .when '',
       templateUrl: '/templates/dashboard.html'
  
    .when '/some_path/:some_param',
         templateUrl: '/templates/dashboard.html'
  </code></pre>
  
  <p>And the following in a wrapping statically served template:</p>
  
  
  
  <p>I also have a templates/dashboard.html appropriately defined.</p>
  
  <p>When I navigate to the url, the initial page loads, however a <code>#</code> is not postpended on the URL, which then results in errors when I try to rewrite the URL in a controller with <code>$location.path('fooPath')</code>.</p>
  
  <p>Specifically <code>$location.path('fooPath')</code>, changes the URL to <code>current_dashboard_path/#/</code> and reloads, while what I was expecting is for the URL to be set to:</p>
  
  <p><code>current_dashboard_path/#/</code>, an then <code>location('fooPath')</code>, to change that to  <code>current_dashboard_path/#/fooPath</code></p>
  
  <p>Some additional context: I want to use this so that I can then use the <code>$location</code> service to change the url without reloading the page thus </p>
  
  <p>Question is, how can I force Angular to postpend a <code>#</code> when an ng-view is populated.</p>