mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
feat: add parent cids to body class
This commit is contained in:
@@ -122,6 +122,7 @@ async function buildBreadcrumbs(req, categoryData) {
|
||||
{
|
||||
text: categoryData.name,
|
||||
url: nconf.get('relative_path') + '/category/' + categoryData.slug,
|
||||
cid: categoryData.cid,
|
||||
},
|
||||
];
|
||||
const crumbs = await helpers.buildCategoryBreadcrumbs(categoryData.parentCid);
|
||||
|
||||
Reference in New Issue
Block a user