Explorar el Código

Update router.js

seve12 hace 2 meses
padre
commit
c048678844
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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(