From 1a745201cc7e065c540a0fac38826d88730569af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 11 Oct 2023 12:36:33 -0400 Subject: [PATCH] feat: use homePageTitle in breadcrumbs if its set https://github.com/NodeBB/NodeBB/issues/12066 --- src/controllers/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}/`, }, ];