Redirect empty video page to index

This commit is contained in:
Pierre Rudloff 2016-06-09 21:15:44 +02:00
parent 0802492b6a
commit 06282c1aa4
2 changed files with 3 additions and 1 deletions

View File

@ -224,6 +224,8 @@ class FrontController
);
$container->view->render($response, 'footer.tpl');
}
} else {
return $response->withRedirect($container->get('router')->pathFor('index'));
}
}

View File

@ -35,7 +35,7 @@ $container['errorHandler'] = array($controller, 'error');
$app->get(
'/',
array($controller, 'index')
);
)->setName('index');
$app->get(
'/extractors',
array($controller, 'extractors')