Browse Source

Update router.js

seve12 2 tháng trước cách đây
mục cha
commit
c048678844
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      config/router.js

+ 3 - 1
config/router.js

@@ -225,7 +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(