public function onKernelResponse(FilterResponseEvent $event)
    {
        $response = $event->getResponse();
        if (!$event->isMasterRequest() || !$response->isRedirect()) {
            return;
        }

        if (!$this->isPlatformUIRequest($event->getRequest())) {
            return;
        }

        $response->setStatusCode(Response::HTTP_RESET_CONTENT);
        $response->headers->set('PJAX-Location', $response->headers->get('Location'));
        $response->headers->remove('Location');
    }
public function onKernelResponse(FilterResponseEvent $event)
    {
        $response = $event->getResponse();
        if (!$event->isMasterRequest() || !$response->isRedirect()) {
            return;
        }

        if (!$this->isPlatformUIRequest($event->getRequest())) {
            return;
        }

        $response->setStatusCode(Response::HTTP_RESET_CONTENT);
        $response->headers->set('PJAX-Location', $response->headers->get('Location'));
        $response->headers->remove('Location');
    }
public function onKernelResponse ( FilterResponseEvent $ event ) { $ response = $ event -> getResponse ( ) ; if ( ! $ event -> isMasterRequest ( ) || ! $ response -> isRedirect ( ) ) { return ; } if ( ! $ this -> isPlatformUIRequest ( $ event -> getRequest ( ) ) ) { return ; } $ response -> setStatusCode ( Response :: HTTP_RESET_CONTENT ) ; $ response -> headers -> set ( 'PJAX-Location' , $ response -> headers -> get ( 'Location' ) ) ; $ response -> headers -> remove ( 'Location' ) ; }
Modifies the response to include PJAX-Location header for Platform UI.

@param \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event
Modifies the response to include PJAX - Location header for Platform UI .