I am using the framework Yii2 with their implementation of Pjax. The controller code adds a header "X-Pjax-Url" that is successfully passed with the response.
The redirect for Pjax is handled through the pjax.js methods just fine in Chrome, Safari, and Firefox, but fails in IE11.
When I use the included debugger and view the response headers, the header is there and the url is correct, but IE11 isn't reading it.
Any ideas?
** Update 9/7/15
The controller code:
return $this->redirect(['secure/dashboard']);
Here is a link to the docs (yii\web\Controller) on how to use this method which is a shortcut to this (yii\web\Response) method.
Once again, this works in the Chrome, Safari, and Firefox, just not IE11.
I was using this snippet to verify the xhr response, which returns null.
// pjax complete
$(document).on('pjax:complete', function (event, xhr, textStatus, options) {
alert(JSON.stringify(xhr));
var url = xhr.getResponseHeader('X-Pjax-Url');
if (url) {
window.location = url;
}
});
In the images above, you can see the header is actually being sent, it just seems as though IE is reading it properly.
The Pjax.js file actually handles the redirect, I was just using the snippet for debugging purposes.