mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 13:20:41 +01:00
feat: use homePageTitle in breadcrumbs if its set
https://github.com/NodeBB/NodeBB/issues/12066
This commit is contained in:
@@ -211,7 +211,7 @@ helpers.buildCategoryBreadcrumbs = async function (cid) {
|
||||
}
|
||||
|
||||
breadcrumbs.unshift({
|
||||
text: '[[global:home]]',
|
||||
text: meta.config.homePageTitle || '[[global:home]]',
|
||||
url: `${relative_path}/`,
|
||||
});
|
||||
|
||||
@@ -221,7 +221,7 @@ helpers.buildCategoryBreadcrumbs = async function (cid) {
|
||||
helpers.buildBreadcrumbs = function (crumbs) {
|
||||
const breadcrumbs = [
|
||||
{
|
||||
text: '[[global:home]]',
|
||||
text: meta.config.homePageTitle || '[[global:home]]',
|
||||
url: `${relative_path}/`,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user