title: In .NET MVC, is there an easy way to check if I'm on the home page?
body: <p>I need to take a particular action if a user logs in from the home page. In my LogOnModel, I have a hidden field:</p>
  
  <pre><code>@Html.Hidden("returnUrl", Request.Url.AbsoluteUri)
  </code></pre>
  
  <p>In my Controller, I need to check if that value is the Home page or not. In the example below, I'm checking to see if the user is on a particular page ("Account/ResetPassword"). Is there a way to check to see if they're on the home page without resorting to regular expressions?</p>
  
  <pre><code>    [HttpPost]
      public ActionResult LogOnInt(LogOnModel model)
      {
         if (model.returnUrl.Contains("/Account/ResetPassword"))
         {
            return Json(new { redirectToUrl = @Url.Action("Index","Home")});
         }
  </code></pre>
  
  <p>Any ideas? A million thanks!</p>