title: AngularJS $location.search do not reload page
body: <p>As my title says, $location.search do not reload page, it just updates the URL. My code:</p>
  
  <pre><code>var app = angular.module('myApp', [], function($locationProvider) {
          $locationProvider.html5Mode(true);
      });
      app.controller('mytableCtrl', function($scope, $location, $http) {
          $scope.target = $location.search()["categoryid"];
          $http.get("api/topCategories")
          .success(function(response) {$scope.names = response;});                        
      }); 
  </code></pre>
  
  <p>Any suggestions? Are there any alternative for this code?</p>
  
  <p><strong>Edit:</strong> 
  $location.search search for parameter in category.html?categoryid=any_number . It takes any_number number and has to compare it with another value. However, I try to press any a href it just updates the URL, but not reloads page.</p>