diff --git a/controllers/FrontController.php b/controllers/FrontController.php index 1c8939a..5efd34c 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -224,6 +224,8 @@ class FrontController ); $container->view->render($response, 'footer.tpl'); } + } else { + return $response->withRedirect($container->get('router')->pathFor('index')); } } diff --git a/index.php b/index.php index 9a33cd7..d3a1764 100644 --- a/index.php +++ b/index.php @@ -35,7 +35,7 @@ $container['errorHandler'] = array($controller, 'error'); $app->get( '/', array($controller, 'index') -); +)->setName('index'); $app->get( '/extractors', array($controller, 'extractors')