From d53884538b8044311b7f93ec0569b03913db248a Mon Sep 17 00:00:00 2001 From: Johannes Wachter Date: Tue, 23 May 2023 08:18:27 +0200 Subject: [PATCH] fix completion listener --- EventListener/CompletionListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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