title: Angular ui-router $state.go is not redirecting inside resolve
body: <p>In my angularjs app, I am checking if user lands on landing page and is already authenticated, then redirect him to home page.</p>
  
  <pre><code>.state('landingpage', {
              abstract: "true",
              url: "/landingpage",
              templateUrl: "app/landingpage/landingpage.html",
              resolve: {
                  AutoLoginCheck: ['$state', '$window', function ($state, $window) {
  
                      if($window.localStorage.access_token != null)
                      {
                          if($window.sessionStorage.access_token == null) {
                              $window.sessionStorage.access_token = $window.localStorage.access_token;
                          }
                          UserInfoService.SetUserAuthenticated(true);
  
                          // it is not redirecting
                          return $state.go('app.home');
  
                      }
                  }]
              }
          })
  </code></pre>
  
  <p>The problem is that though all the resolve code is successfully run, user is not getting redirected to app.home. Can someone tell why this happens?</p>
  
  <p><strong>Note</strong>: The state 'app' also has a resolve in which it fetches the data to be displayed in 'app.home' state.</p>