title: Redirect to action doesn't work in MVC
body: <p>I have a controller <code>CMS</code> as you can see here : </p>
  
  <pre><code>  [HttpGet]
          public ActionResult Login(string returnUrl)
          {
  
  
  
              return View(); // show the login page
          }
          UserRepository ObjUserRepository = new UserRepository();
          [HttpPost]
          public ActionResult Login(DomainClass.User loginInfo, string returnUrl)
          {
  
  
              if (ObjUserRepository.FindBy(i =&gt; i.Email == loginInfo.Email &amp; i.Password == loginInfo.Password).Any())
              {
                  DomainClass.User objUser = ObjUserRepository.FindBy(i =&gt; i.Email == loginInfo.Email &amp; i.Password == loginInfo.Password).FirstOrDefault();
  
                  FormsAuthentication.SetAuthCookie(loginInfo.Email, false);
                  if (shouldRedirect(returnUrl))
                  {
                      return Redirect(returnUrl);
                  }
  
                  if (objUser.Pemission == "professor")
                  {
                      return RedirectToAction("Index", "Home", new { Area = "Teacher" });
                  }
  
  
              }
  
  
          return View(loginInfo);
      }
  </code></pre>
  
  <p>I call this url <code>../cms/login</code>  and my <code>login</code> view appeared ,i enter the <code>username</code> and <code>password</code> ,this part of code is executed :</p>
  
  <pre><code>  if (objUser.Pemission == "professor")
                  {
                      return RedirectToAction("Index", "Home", new { Area = "Teacher" });
                  }
  </code></pre>
  
  <p>But the mvc redirects me to Login page again ,but it should redirect me to <code>/teacher/home/index</code></p>