diff --git a/application/modules/default/controllers/IndexController.php b/application/modules/default/controllers/IndexController.php index b47a1036c..4bb0dfafc 100644 --- a/application/modules/default/controllers/IndexController.php +++ b/application/modules/default/controllers/IndexController.php @@ -24,9 +24,8 @@ class IndexController extends Zend_Controller_Action { //Afficher le menu pour la version mobile } - else - { - $this->forward('index', 'entreprise', 'search'); + else { + $this->redirect($this->view->url(array('module'=>'search', 'controller'=>'entreprise', 'action'=>'index'))); } } diff --git a/library/Application/Controller/Plugin/Menu.php b/library/Application/Controller/Plugin/Menu.php index bb7f181a6..f403511ba 100644 --- a/library/Application/Controller/Plugin/Menu.php +++ b/library/Application/Controller/Plugin/Menu.php @@ -34,7 +34,7 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract return; } - if ($module == 'default' && $controller == 'index' && $action == 'index') { + if ($module == 'default') { return; } @@ -168,6 +168,7 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract { if ($this->container->hasPages()) { foreach($this->container->getPages() as $head) { + // Active on parent if children if ($head->hasChildren()) { foreach($head->getPages() as $page) { if ($page->isActive()) {