Skip to content

Instantly share code, notes, and snippets.

@edspencer
Created September 11, 2009 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edspencer/185319 to your computer and use it in GitHub Desktop.
Save edspencer/185319 to your computer and use it in GitHub Desktop.
(function() {
var originalRequest = Ext.Ajax.request;
Ext.Ajax.request = function(o) {
if (!(/config\/environment/.test(o.url))) {
o.url = String.format("/myprependString/{0}", o.url.replace(/^\//, ''));
}
return originalRequest.call(this, o);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment