Hi all,
I've spent a few hours trying to figure out why the redirection is not working on IE 11/Microsoft Edge, but I'm running out of ideas, maybe someone else can have some clues.
I'm using the suggested code for a redirection on my hook:
"hook": "filter:category.get", "method": "redirectIfMissingBadge"
....
return callback({
status: 302,
path: '/some-path'
});
It works well on all browsers except IE11, where I get the following error on console:
SCRIPT7002: XMLHttpRequest: Network Error 0x800c0008, The download of the specified resource has failed.
You can have more details here: https://gyazo.com/b4861e0b595394d1929d9f84219eac74
As you can see, ajaxify.loadData is getting the folowing error:
error {"readyState":0,"status":0,"statusText":"error"} textStatus "error" errorThrown NaN
instead of the 302 status.
I've even debug jquery ajax method and we can see by the logs that
transport.send( requestHeaders, done );
is returning
responses = undefined
status = 0
no nativeStatusText
headers = undefined
So bottom line, I can't use the redirection.
Have you the same issue when using this redirection?
Is there another way to redirect?
Does someone have a running app that the redirection works well even on IE11/Microsoft Edge?
Thank you