rcrowe / Turbo

Think Ruby turbolinks but for your PHP application. Powered by pjax.
87 stars 6 forks source link

Add response header so PJAX push state works properly #4

Open ghost opened 10 years ago

ghost commented 10 years ago

PJAX can't detect the push state URL when redirects happen. With RESTful routing, redirects are common for form validation and success. We simply need to add a response header to say what URL is requested to inform PJAX where we are.