Add link to search header for storing search

This commit is contained in:
John R. Supplee 2021-01-17 21:04:05 +02:00
parent 409b8559d7
commit 7e8475e64d
4 changed files with 13 additions and 4 deletions

View file

@ -160,9 +160,10 @@ FlowRouter.route('/global-search', {
Utils.manageMatomo();
DocHead.setTitle(TAPi18n.__('globalSearch-title'));
// eslint-disable-next-line no-console
console.log('URL Params:', FlowRouter.getQueryParam('q'));
Session.set('globalQuery', decodeURI(FlowRouter.getQueryParam('q')));
Session.set(
'globalQuery',
decodeURIComponent(FlowRouter.getQueryParam('q')),
);
BlazeLayout.render('defaultLayout', {
headerBar: 'globalSearchHeaderBar',
content: 'globalSearch',