Update router.js

This commit is contained in:
seve12 2025-08-05 20:22:09 +03:00 committed by GitHub
parent ce419ce64e
commit c048678844
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(