diff --git a/EventListener/CompletionListener.php b/EventListener/CompletionListener.php index d61acb1..cb738e6 100644 --- a/EventListener/CompletionListener.php +++ b/EventListener/CompletionListener.php @@ -104,7 +104,7 @@ public function onRequest(RequestEvent $event): void $request = $event->getRequest(); $completionUrl = $this->router->generate('sulu_community.completion'); - if (!$event->isMasterRequest() + if (!$event->isMainRequest() || !$request->isMethodSafe() || $request->isXmlHttpRequest() || $request->getPathInfo() === $completionUrl