I've created some pages using "Gentelella Alela" template, when I create pages, it has the ability to turn navigation active (with 'current-page' class) based on controller and action name:
I'm adding "Add" action in RoleController, when I redirect to "/Admin/Role/Add", the navigation active is gone:
Any idea how should I make it work?




One easy way to do is using BaseController
You can call active page before action executing. After this you need to check this ViewData on Layout page.
And before script your ul and li element must contains specific name to recognize it. You need to use format given in BaseController ActivePage method ControlleName-ActionName.