yiisoft/yii2 — pull request #2531 by tof06 (2014-02-24 11:36:09+00:00)
Title: Add getIsPjax method to Request, and add X-PJAX-URL header when redirect from pjax request

When redirecting from a pjax request, we should send a x-pjax-url header, with the redirected url. Therefore, pjax will push this url in state, instead of the original url.