mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-22 23:20:53 +02: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({
|
breadcrumbs.unshift({
|
||||||
text: '[[global:home]]',
|
text: meta.config.homePageTitle || '[[global:home]]',
|
||||||
url: `${relative_path}/`,
|
url: `${relative_path}/`,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -221,7 +221,7 @@ helpers.buildCategoryBreadcrumbs = async function (cid) {
|
|||||||
helpers.buildBreadcrumbs = function (crumbs) {
|
helpers.buildBreadcrumbs = function (crumbs) {
|
||||||
const breadcrumbs = [
|
const breadcrumbs = [
|
||||||
{
|
{
|
||||||
text: '[[global:home]]',
|
text: meta.config.homePageTitle || '[[global:home]]',
|
||||||
url: `${relative_path}/`,
|
url: `${relative_path}/`,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user