hey all, I examine that if my site is enabled or not, and if not, I redirect to an "under construction" module:
/**
- @return */ protected function afterExecuteRoute() { if (!enabled && $this->router->getControllerName() != 'error' && $this->router->getControllerName() != 'underconstruction') { $this->response->redirect('underconstruction/index'); return false; } }
the problem is that if I type bad url, this still triggers. In case of bad url, I want to drive to 404 controller (already set). So how to examine AFTER good routing?