title: MVC3 Action Call from Javascript ReturnUrl parameter always null
body: <p>I am using javascript to load up an Action and finding that when the action method is called one of the parameters "returnUrl" is always null.  I have confirmed that returnUrl is populated in the javascript correctly using firebug, but somewhere between executing the .load function and the action method the value for returnUrl is lost and set to null.  I have found that if I remove the "id" parameter and just have the "returnUrl" parameter that returnUrl has the correct value.  I have spent many hours trying to figure out what is going on here and am completely stumped, I would apprectiate some help.</p>
  
  <p>My Javascript:</p>
  
  <pre><code>&lt;!-- Review Dialog Popup --&gt;
  &lt;script type="text/javascript"&gt;
  function showWriteReviewDialog(gameId, returnUrl) {
      if( $("#Review").length == 0)
      { 
          var url = "@Url.Action("WriteUserReview", "UGDBUser", new { id = "PLACEHOLDER", returnUrl =  Request.Url.ToString() })";
  
          // ajax load
          $('#writereview').load(url.replace('PLACEHOLDER', gameId));
      } else {
          // clear summary &amp; reviewtext fields
          $('#summary,#reviewtext').val('');
  
          //reopen the write review dialog which was previously rendered
          $("#Review").dialog({
              modal: true, 
              autoOpen: true,
              resizeable: false
          }); 
      }
  };
  &lt;/script&gt;
  </code></pre>
  
  <p>My Dumbed Down Action Method:</p>
  
  <pre><code>     [Authorize]
       public ActionResult WriteUserReview(Guid id, string returnUrl)
       {
          return Redirect(returnUrl);
       }
  </code></pre>