I have an app and want to change the url for all ajax requests to give them a relative path. I tried to set up a global change using ajaxSetup and beforeSend, but the url was only updated in the config, not the request object. Any thoughts on how to do this?
<code> $.ajaxSetup({ beforeSend : function(J) { this.url = "/newpath/" + this.url; } }); </code>