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:
Julian Lam
2018-01-22 11:39:39 -05:00
parent 593c5047cf
commit 0cefa56a0b

View File

@@ -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',