Commit b43002fe authored by Ad Schellevis's avatar Ad Schellevis

change default mvc behavior to return to dashboard for non existent pages.

parent 7a59cc8b
...@@ -34,8 +34,13 @@ ...@@ -34,8 +34,13 @@
*/ */
class IndexController extends \OPNsense\Base\IndexController class IndexController extends \OPNsense\Base\IndexController
{ {
/**
* return to / for non existent actions
*/
public function indexAction() public function indexAction()
{ {
$this->view->pick('OPNsense/Core/index'); //$this->view->pick('OPNsense/Core/index');
$this->response->redirect('/', true);
return;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment