mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
As per documentation, option-based redirect should only occur on successful AJAX requests (pushing a redirect from the server still works)
This commit is contained in:
parent
44cff23009
commit
7ea65608a0
@ -109,6 +109,8 @@ if (window.jQuery === undefined)
|
||||
*/
|
||||
if (jqXHR.status == 406 && jqXHR.responseJSON) {
|
||||
errorMsg = jqXHR.responseJSON['X_OCTOBER_ERROR_MESSAGE']
|
||||
isRedirect = false
|
||||
options.redirect = null
|
||||
updatePromise = requestOptions.handleUpdateResponse(jqXHR.responseJSON, textStatus, jqXHR)
|
||||
}
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user