I'm trying to detect 302 redirect on ajax response:
$(document).on("pfAjaxComplete", function(event, xhr, options) {
console.log("complete",event, xhr, options);
});
This is working fine for normal ajax requests, but when I get 302 response xhr object is empty:
readyState 0
responseText ""
responseXML null
status 0
statusText "error"
How can I detect 302 response? I'm using PF 4.0