Add checks for XHR redirects #101

Merged
BehindTheMath merged 2 commits from feature/detect-redirects into master 2018-01-10 15:45:56 -05:00
BehindTheMath commented 2018-01-10 00:15:29 -05:00 (Migrated from github.com)

Fixes #7

This checks for redirects by looking for the following, in sequence:

  • XMLHttpRequest.responseURL
  • the X-PJAX-URL header (like jquery-pjax)
  • the X-XHR-Redirected-To header (like Turbolinks)
Fixes #7 This checks for redirects by looking for the following, in sequence: - `XMLHttpRequest.responseURL` - the `X-PJAX-URL` header (like jquery-pjax) - the `X-XHR-Redirected-To` header (like Turbolinks)
MoOx (Migrated from github.com) approved these changes 2018-01-10 01:53:01 -05:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#101