title: Why is the URL undefined (After JQuery Ajax Post)
body: <p>So basically, I'm trying to refresh the view after I do an Ajax Post in a Profile View.</p>
  
  <pre><code> $.ajax({ 
       url: '/Profile/Index',
       dataType: "html", 
       type: "POST", 
       data: JSON.stringify(10), 
       success: function(returl) { 
           alert('It worked'); 
           window.location.href = returl.url;
       }, 
       error: function(jqXHR,responseText,textStatus) {
           alert(jqXHR.responseText) 
       } 
  });
  </code></pre>
  
  <p>This is the HttpPost Action:</p>
  
  <pre><code>[HttpPost]
  public ActionResult Index(string number){
      //Things to do
      var redirectUrl = new UrlHelper(Request.RequestContext).Action("Index", "Profile");
      return Json(new { Url = redirectUrl });
  }
  </code></pre>
  
  <p>And after the post is made I get this URL: <a href="http://localhost:50738/undefined" rel="nofollow">http://localhost:50738/undefined</a>
  I already debugged the Controller method and it gets /Profile correctly. I can't understand why this problem keeps going... Thanks!</p>