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());
}
}
}
Written by kirk bushell
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Tags
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#