title: ASP.NET MVC 4 - Redirect to the same page after controller ends
body: <p>From a page I have the following:</p>
  
  <pre><code>@using (Html.BeginForm("AddEntry", "Configure", FormMethod.Get, new { returnUrl = this.Request.RawUrl }))
  {
      @Html.TextBox("IP")
      @Html.Hidden("TypeId", 1)
      &lt;input type="submit" value="@Resource.ButtonTitleAddComponent" /&gt;
  }
  </code></pre>
  
  <p>so controller is called correctly:</p>
  
  <pre><code>public ActionResult AddEntry(string ip, int TypeId, string returnUrl)
  {
      // Do some stuff
  
      return Redirect(returnUrl);
  }
  </code></pre>
  
  <p>My problem is that returnUrl gets null and it does not redirect to the same page that called the controller. Ideas?</p>
  
  <p>Using: ASP.NET MVC 4
         Razor</p>