I have published a small snippet 
at 
https://github.com/ustun/ensure-trailing-slash-for-jquery-ajax/blob/master/ensure_slash.js
 

that automatically adds a trailing slash to every outgoing AJAX request so 
as to minimize accidental redirects. 


Best,

Ustun


(Inspired by https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax )

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a284fd82-a057-455f-bd36-815b262a4ef0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to