Last Updated: February 25, 2016
·
347
· 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());
        }
    }
}