title: RedirectToAction not changing URL or navigating to Index view
body: <p>I tried using a <code>RedirectToAction</code> after I have done a post to the controller and saved but the URL does not change and the redirect does not seem to work. I need to add that the redirect does enter the controller action method when I debug. It does not change the URL or navigate to the <code>Index</code> view.</p>
  
  <pre><code>public ViewResult Index()
  {
      return View("Index", new TrainingViewModel());
  }
  
  public ActionResult Edit()
  {
      // save the details and return to list
      return RedirectToAction("Index");    
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
      routes.IgnoreRoute("{resource}.js/{*pathInfo}");
      routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });
  
      routes.MapRoute(
          "Default", // Route name
          "{controller}/{action}/{id}", // URL with parameters
          new { controller = "Home", action = "Index", id = "" } // Parameter defaults
      );
  }
  </code></pre>
  
  <p>jQuery calls:</p>
  
  <pre><code>this.SynchValuesToReadOnly = function() {
      window.location = $('#siteRoot').attr('href') + 'Sites/';           
  };
  
  this.OnSiteEdit = function() {
      // post back to the server and update the assessment details    
      var options = {
          target: '',
          type: 'post',
          url: '/Site/Edit',
          beforeSubmit: othis.validate,
          success: othis.SynchValuesToReadOnly
      };
  
      $('#uxSiteForm').ajaxSubmit(options);
  };
  </code></pre>