Created
December 4, 2014 11:06
-
-
Save rcdexta/1599abfe4d32279383ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajaxSetup({ | |
statusCode: { | |
302: function (response) { | |
var redirect_url = response.getResponseHeader('X-Ajax-Redirect-Url'); | |
if (redirect_url != undefined) { | |
window.location.pathname = redirect_url; | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment