Skip to content

Commit

Permalink
fix completion listener
Browse files Browse the repository at this point in the history
  • Loading branch information
wachterjohannes committed May 23, 2023
1 parent 7a4e537 commit d538845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/CompletionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d538845

Please sign in to comment.