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:
Claude (Chronicler #57)
2026-04-03 17:32:00 +00:00
parent ddefe851f4
commit ab37828693

View File

@@ -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);