If done with Ajax, the actual redirection needs to be in Javascript code.
Once the Ajax is done, window.location = "http://www.yoururl.com";
$.ajax({
type: 'POST',
url: 'AJAX URL',
data: "YOUR DATA"
success: function(data){
window.location = "http://www.yoururl.com";
},
error: function(xhr, type, exception) {
// if ajax fails display error alert
alert("ajax error response type "+type);
}
});