diff --git a/src/Controller/Component/RequestHandlerComponent.php b/src/Controller/Component/RequestHandlerComponent.php index 06eeddbd1f9..051b52bea36 100644 --- a/src/Controller/Component/RequestHandlerComponent.php +++ b/src/Controller/Component/RequestHandlerComponent.php @@ -260,7 +260,7 @@ public function convertXml($xml) */ public function beforeRedirect(Event $event, $url, Response $response) { - if ($this->config('enableBeforeRedirect') == false) { + if (!$this->config('enableBeforeRedirect')) { return null; } $request = $this->request;