mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
closes #3475
This commit is contained in:
@@ -66,6 +66,9 @@ categoriesController.list = function(req, res, next) {
|
||||
}
|
||||
|
||||
data.title = '[[pages:categories]]';
|
||||
if (req.path.startsWith('/api/categories') || req.path.startsWith('/categories')) {
|
||||
data.breadcrumbs = helpers.buildBreadcrumbs([{text: data.title}]);
|
||||
}
|
||||
|
||||
plugins.fireHook('filter:categories.build', {req: req, res: res, templateData: data}, function(err, data) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user