From ecb6ff57fcde7f24689754d412ee36679253db90 Mon Sep 17 00:00:00 2001 From: severi12345 <120168678+severi12345@users.noreply.github.com> Date: Tue, 5 Aug 2025 19:59:33 +0300 Subject: [PATCH] Update page titles to include product name in settings and global search --- client/components/settings/settingBody.js | 2 +- config/router.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js index be8322af3..24a8e9caf 100644 --- a/client/components/settings/settingBody.js +++ b/client/components/settings/settingBody.js @@ -287,7 +287,7 @@ BlazeComponent.extendComponent({ this.setLoading(false); } - DocHead.setTitle(productName); + DocHead.setTitle(`Settings - ${productName}`); }, sendSMTPTestEmail() { diff --git a/config/router.js b/config/router.js index 888393cfd..c1d2367d6 100644 --- a/config/router.js +++ b/config/router.js @@ -225,8 +225,9 @@ FlowRouter.route('/global-search', { Utils.manageCustomUI(); Utils.manageMatomo(); - DocHead.setTitle(TAPi18n.__('globalSearch-title')); - + const currentSetting = ReactiveCache.getCurrentSetting && ReactiveCache.getCurrentSetting(); + const productName = currentSetting && currentSetting.productName ? currentSetting.productName : 'Wekan'; + DocHead.setTitle(`${TAPi18n.__('globalSearch-title')} - ${productName}`); if (FlowRouter.getQueryParam('q')) { Session.set( 'globalQuery',