Redirecting and AJAX - Using Ajax Plugin
A simple AJAX POST with a normal redirect is usually resolved in the RequestHandler to avoid actual redirecting when serving AJAX. It instead returns the redirected content as part of the response. Using the AjaxComponent you can disable that and instead return the redirect URL and its status code to manually use it in your JS/jQuery code.