Redirect empty video page to index
This commit is contained in:
parent
0802492b6a
commit
06282c1aa4
2 changed files with 3 additions and 1 deletions
|
@ -224,6 +224,8 @@ class FrontController
|
|||
);
|
||||
$container->view->render($response, 'footer.tpl');
|
||||
}
|
||||
} else {
|
||||
return $response->withRedirect($container->get('router')->pathFor('index'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ $container['errorHandler'] = array($controller, 'error');
|
|||
$app->get(
|
||||
'/',
|
||||
array($controller, 'index')
|
||||
);
|
||||
)->setName('index');
|
||||
$app->get(
|
||||
'/extractors',
|
||||
array($controller, 'extractors')
|
||||
|
|
Loading…
Reference in a new issue