defunkt / jquery-pjax

pushState + ajax = pjax
https://pjax.herokuapp.com
MIT License
16.73k stars 1.97k forks source link

Handle redirect responses better #607

Closed CupOfTea696 closed 7 years ago

CupOfTea696 commented 8 years ago

On error, check if a redirect happened during the ajax request and hard reload to the redirected URL rather than the original request URL.

Actual changes at lines 234 and 256.

mislav commented 7 years ago

Sorry, it's hard to see the actual changes you've made here due to all the unnecessary variable renaming. We will keep the current redirect behavior for now because it works alright.