Yeah, we are not sure if this would work because it’s not how the plugin was designed.
Try with
complete: function(xmlHttp) {
if (xmlHttp.code != 200) {
window.location.href = "/path/to/thankyoupage";
}
}
Again, not sure if this will work because all the solutions for redirect happen on success, and our plugin will store the email to the database on success. You could also try with:
success: function(msg, response){
if(msg === "OK"){
$form.animate({ height: '0px' }, 800, function() {
$form.hide();
});
$wrapper.find('.ABss_success_message').delay(400).html(ABss_custom.success).slideDown(600);
if (response.redirect) {
window.location.href = response.redirect;
}
}
else {
$wrapper.find('.ABss_subscriber_email').addClass('ABss_field_error').attr("placeholder", ABss_custom.error).val('').focus();
}
}
This is a customization of the plugin, so, again, we cannot guarantee this will work.