9bo-ja
Last Updated: February 25, 2016
·
207
· kirkbushell

jquery-pjax redirect url fix - use as a route after filter

class PjaxFilter
{
    public function filter($route, $request, $response)
    {
        if (Request::header('X-PJAX') === 'true') {
            $response->header('X-PJAX-URL', Request::url());
        }
    }
}