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.
v1.18.x
Julian Lam 7 years ago
parent 593c5047cf
commit 0cefa56a0b

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

Loading…
Cancel
Save