title: return View("viewname") not returning the view specified
body: <p>Using the SPA Template I'm trying to get the <code>Login</code> POST method to return the <code>VerifyEmail</code> View if the user has not verified their email yet. </p>
  
  <p>While debugging you can see the <code>return View("VerifyEmail")</code> being called, however, I'm returned to "/" and the <code>VerifyEmail</code> view is not being returned.</p>
  
  <p>I have verified that the View is in the correct folder Views > Account. </p>
  
  <p>Is there some automatic routing configuration I should look for? Why isn't my View being returned?</p>
  
  <pre><code>[HttpPost]
  [AllowAnonymous]
  [ValidateAntiForgeryToken]
  public async Task&lt;ActionResult&gt; LogOn(LogOnVM model, string returnUrl)
  {
      if (!ModelState.IsValid)
          return View(model);
  
      switch (await SignInManager.PasswordSignInAsync(model.UserName, model.Password, model.RememberMe, true))
      {
          case SignInStatus.Success:
              MyUser user = await UserManager.FindByNameAsync(model.UserName);
              if (!await UserManager.IsEmailConfirmedAsync(user.UserName))
                  return View("VerifyEmail");
              else
                  return RedirectToLocal(returnUrl);
          //other cases ignored for brevity
      }
  }
  </code></pre>
  
  <p>I tried to add this, but didn't help at all:</p>
  
  <pre><code>public ActionResult VerifyEmail()
  {
      return View();
  }
  </code></pre>
  
  <p>I was searching and found this in my code, obviously there because of the default template:</p>
  
  <pre><code>public override Task ValidateClientRedirectUri(OAuthValidateClientRedirectUriContext context)
  {
      if (context == null)
          throw new ArgumentNullException("context");
  
      if (context.ClientId == _publicClientId)
      {
          Uri expectedRootUri = new Uri(context.Request.Uri, "/");
  
          if (expectedRootUri.AbsoluteUri == context.RedirectUri)
          {
              context.Validated();
          }
          else if (context.ClientId == "web")
          {
              var expectedUri = new Uri(context.Request.Uri, "/");
              context.Validated(expectedUri.AbsoluteUri);
          }
      }
      return Task.FromResult&lt;object&gt;(null);
  }
  </code></pre>
  
  <p>Could this be what's causing the problem?</p>