title: Removes hash when directing
body: <p>First, the problem:
  I have an overview of items, and I want to get directed to a detailpage when clicking on a item. So far so good, the path works and all, but somehow my code keeps directing and removes the hash of the link. My browser(google chrome) tells me "object not found then".</p>
  
  <p>The routing code:</p>
  
  <pre><code>.when('/home/:category/', {
          title: "Home",
          name: "home",
          templateUrl: './templates/frontend_home.php',
          controller: "SearchListCtrl"
      })
  .when('/detail/:id', {
          title: "Detailansicht",
          name: "detail",
          controller: "DetailController",
          templateUrl: "./templates/frontend_detail.php"
      })
  </code></pre>
  
  <p>I have an ng-repeat of <code>&lt;tr&gt;</code>, which link to the detailview like:</p>
  
  <pre><code>&lt;tr ng-repeat="data in responseData | limitTo:limit" ng-click="showDetail(data.id)"&gt;
  </code></pre>
  
  <p>And the code in the <code>SearchListCtrl</code>:</p>
  
  <pre><code>$scope.showDetail = function(detailId){
      console.log("showDetail");
      $location.path('/detail/' + detailId);
  }
  </code></pre>
  
  <p>The <code>DetailController</code>:</p>
  
  <pre><code>lmsApp.controller('DetailController', function ($scope, $routeParams, $http){
      $scope.$on("$routeChangeSuccess", function(evt, absNewUrl, absOldUrl){
          console.log(absOldUrl);
          console.log(absNewUrl);
      });
      var ajax=$http.post("./includes/ajax_getDetailInformation.php", {"id": $routeParams["id"]});
      ajax.success(function(data, status, headers, config) {
          $scope.object=data[0];
      });
      ajax.error(function(data, status, headers, config){
          console.log("Ajax failed");
      });
  });
  </code></pre>
  
  <p>So, first the link is like:</p>
  
  <pre><code>http://localhost/Diplomarbeit/lms_project/#/detail/168?query=violine
  </code></pre>
  
  <p>And than gets (automatically) to something like:</p>
  
  <pre><code>http://localhost/Diplomarbeit/lms_project/detail/168
  </code></pre>
  
  <p>I have tried to remove the search query with $location.url($location.path()); before changing the path already, but it doesn't make changes.</p>
  
  <p>I can see the first(working) link in the history, but why does it keep redirecting?</p>
  
  <p>I would appreciate every answer.
  Greets,
  Force0234</p>