Closed koszta closed 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
applied, thanks!
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