fix: add currentPath variable for layout navigation
Layout.ejs expects currentPath to highlight active menu item Signed-off-by: Claude (Chronicler #57) <claude@firefrostgaming.com>
This commit is contained in:
@@ -18,7 +18,8 @@ router.get('/', isAdmin, async (req, res) => {
|
||||
title: 'Dashboard',
|
||||
user: req.user,
|
||||
csrfToken: req.csrfToken(),
|
||||
mappings: mappings
|
||||
mappings: mappings,
|
||||
currentPath: '/dashboard'
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Admin dashboard error:', error);
|
||||
|
||||
Reference in New Issue
Block a user