title: Angularjs $location.url doesn't work, location.href works
body: <p>When I try to change the location within my controller it loads server's root, not the certain page:</p>
  
  <pre><code>'use strict';
  
  eventsApp.controller('TestController',
      function TestController($scope, $location){
          console.log('test comes here!');
          $scope.makeTest = function(){
              $location.url('/test');
          }
  });
  </code></pre>
  
  <p>I have a router like this:</p>
  
  <pre><code>'use strict';
  
  var eventsApp = angular.module('eventsApp', ['ngResource','ngSanitize'])
      .config(function($routeProvider, $locationProvider){
          $routeProvider
            .when('/test',{
              templateUrl:'templates/test.html',
              controller:'TestController'
          }).otherwise({
              templateUrl:'templates/default.html',
              controller:'DefaultController',
              redirectTo:''
          });
          $locationProvider.html5Mode(true);
      });
  </code></pre>
  
  <p>In my index.html I set the directive </p>
  
  <pre><code>&lt;base href="/"&gt;
  </code></pre>
  
  <p>It seems that everytime it implements <em>otherwise</em>. However if I use </p>
  
  <pre><code>location.href = '/test';
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>$location.url('/test');
  </code></pre>
  
  <p>, then it works.
  I have no idea about such a behavior. Do you?</p>