Navigation Link breaks when the primary navigation is a module (upgrading twill3)

Primary menu is visible with 'home page' and 'Projects' for the below array defined in twill-navigation (Yes legacy code) 'home' => [ 'title' => 'Home page', 'route' => 'home', ], 'projects' => [ 'title' => 'Projects', 'module' => true, ] Once I started add primary navigation array application breaks with Route not found exception Here Projects and users are parent child nested modules. protected $moduleName = 'projects.users'; => line from users controller. 'projects' => [ 'title' => 'Projects', 'module' => true, 'primary_navigation' => [ 'users' => [ 'title' => 'Users', 'module' => true, ] ] What am doing wrong here?
2 Replies
zeezo887
zeezo8876d ago
Hi @Albert Do you have the route for the users module defined in your route file? TwillRoutes::module('users');
Albert
AlbertOP6d ago
Yes, TwillRoutes::module('projects.users');

Did you find this page helpful?