mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
Fixes #6269
Also fixed issue where if homePageRoute was not set (as in brand- new install), then categories would also show up, in this revised logic. Oops.
This commit is contained in:
@@ -129,7 +129,7 @@ helpers.buildCategoryBreadcrumbs = function (cid, callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if (meta.config.homePageRoute !== 'categories') {
|
||||
if (meta.config.homePageRoute && meta.config.homePageRoute !== 'categories') {
|
||||
breadcrumbs.unshift({
|
||||
text: '[[global:header.categories]]',
|
||||
url: nconf.get('relative_path') + '/categories',
|
||||
|
||||
Reference in New Issue
Block a user