Skip to content

Node.js based forum software built for the modern web

feat: use homePageTitle in breadcrumbs if its set

Barış Soner Uşaklı1a745201cc7e
diff --git a/src/controllers/helpers.js b/src/controllers/helpers.js
index fb228cbfb7..4e4c562741 100644
--- a/src/controllers/helpers.js
+++ b/src/controllers/helpers.js
@@ -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}/`,
},
];