private ActionResult RedirectToLocal(string returnUrl) { if (Url.IsLocalUrl(returnUrl)) return Redirect(returnUrl); //redirect to the main landing page for an authenticated user return RedirectToAction(MVC.Home.Index()); }