In my controller actions this always works:
$this->flashSession->error('You must login'); return $this->response->redirect('/login');
If I put that code in the controller's beforeExecuteRoute() method it works. However, if I put it in the parent controller (ControllerBase) beforeExecuteRoute() method it doesnt work unless I use $this->view->disable()
Anybody know what my issue might be?