title: AngularJS $location.path(url) not Redirecting
body: <p>All,</p>
  
  <p>I have an AngularJS PhoneGap app I am working on. I am stuck on one redirect that occurs immediately after receiving an API call response. My code is located at <a href="https://gist.github.com/bp4151/277795cf61f3f7c721f9" rel="nofollow">gist.github.com</a></p>
  
  <p>My issue is on line 300 of controllers.js, where I am calling my redirect within a then() block.</p>
  
  <pre><code>UserService.login($scope.user.email, $scope.user.password)
              .then(function(response) {
  
                  globals.session_id = response.data.meta.session_id;
                  globals.logged_in_userId = response.data.response.users[0].id;
  
                  if ($scope.user.remember === true) {
                      window.localStorage.setItem("_session_id", response.data.meta.session_id);
                      window.localStorage.setItem("logged_in_userId", response.data.response.users[0].id);
                  } else {
                      window.localStorage.removeItem("_session_id");
                      window.localStorage.removeItem("logged_in_userId");
                  }
              })
              .then(function() {
                  $location.path("/tab/locations");// &lt;=== This line doesn't cause an error but does not result in a redirect
              })
              .
          catch (function(response) {
              alert(JSON.stringify(response));
          });
  </code></pre>
  
  <p>If anyone could please help me out, I'd appreciate it!</p>
  
  <p>Thanks,
  Bruce</p>