title: AngularJS adding html5Mode broke redirectTo
body: <p>After adding </p>
  
  <pre><code>  $locationProvider.html5Mode({ enabled: true,  requireBase: false});    
    $locationProvider.hashPrefix('');  
  </code></pre>
  
  <p>to my app.js to get rid off a "hash-bang" URL case it broke working</p>
  
  <pre><code>    .otherwise({
          redirectTo: '/'
      });
  </code></pre>
  
  <p>in the <code>$routeRovider</code>. </p>
  
  <p><code>&lt;base href="/"&gt;</code> is set in the index.html</p>
  
  <p>Any clue how to get it fixed? I'm new to AngularJS (I'm using version 1.6.5)</p>