title: $location.path is not working
body: <p>When user has enter correct username and password I want redirect to another location. But when I used <code>$location.path('dashboard')</code> here then URL of browser is changed but that page not loaded.when refresh I page using ctrl+R or click on refresh icon of browser then appropriate page is loaded.</p>
  
  <pre><code>$http.post('/login', $scope.userInfo)
          .success(function (data) {
              //Check if the authentication was a success or a failure
              //Successful POST here does not indicate success of authentication
              if (data.status === "authentication success") {
  
                  //Proceed to load the dashboard for the user                    
                  $location.path('/dashboard');
  
              } else if (data.status === "authentication error") {
                  //Inform user of the error
                  $scope.errorMessage = data.error;
                  $scope.showErrorMessage = true;
              }
  
          })
          .error(function (error) {
              $scope.errorMessage = "Error while attempting to authenticate. Check  log.";
              $scope.showErrorMessage = true;
  
          });
      };
  
  }]);
  </code></pre>