Appending trailing slashes to jQuery Ajax requests automatically

32 views
Skip to first unread message

Ustun Ozgur

unread,
Oct 14, 2014, 2:33:45 PM10/14/14
to django...@googlegroups.com
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


Reply all
Reply to author
Forward
0 new messages