$.post('/js/register', data, function(){
});
$.get('/js/home', data, function(){
//render the template here
});
I use these in my Backbone app. It fetches the data from the server, then renders the template.
I want to override these on a global level so that when I make these calls, "data" has the current window.location (the url) as an attribute.
For EVERY ajax call, I want to append the current url that the user is currently on.
PS - I'm using Backbone push state - does that make a difference?