eval / rack-pjax

pjax for rails and rack applications
http://rack-pjax.herokuapp.com/
MIT License
205 stars 65 forks source link

Fixed urls on redirects #10

Closed koszta closed 12 years ago

koszta commented 12 years ago

If the server redirects to another url, we can't check it by xhr request, but in pjax_rails, they solved this problem by adding X-AJAX-URL to the response headers.

See: https://github.com/rails/pjax_rails/blob/master/vendor/assets/javascripts/jquery.pjax.js#L200 https://github.com/rails/pjax_rails/blob/master/lib/pjax.rb#L31

eval commented 12 years ago

applied, thanks!