With xhr_redirect redirected xhr requests (read: ajax requests) stay xhr --> request.xhr? == true
- When an xhr request is redirected, _xhr=1 will be added to the parameters
- Request with _xhr=1 are recognised as xhr ( also enhances testablility, simulate xhr responses by adding _xhr=1 )
script/plugin install git://github.com/grosser/xhr_redirect.git
- find a more elegant solution
Michael Grosser
michael@grosser.it
Hereby placed under public domain, do what you want, just do not hold me accountable...