title: Cakephp3 redirect in beforeFilter is not working
body: <p>When I add the $this->redirect statement inside a beforeFilter of a controller and return afterwards, the redirection is being ignored. When I move the redirect statement inside an action of the controller, it works fine. Does someone has an idea what I am doing wrong?</p>
  
  <pre><code>public function beforeFilter(Event $event) {
      if( true ){ //if a sample condition is true
          return $this-&gt;redirect([
              'controller' =&gt; 'test',
              'action' =&gt; 'action'
          ]);
      }
  </code></pre>