src/helpers.js
/**
 * Title for search query shown in bookmarks list
 * q,f for @rohberg/volto-searchkit
 * Add more querystring keys if needed
 * @function querystringToTitle
 * @param {string} querystring querystring of url
 * @return {string} joined values of querystring
 */
Title for search query shown in bookmarks list
q,f for @rohberg/volto-searchkit
Add more querystring keys if needed
@function querystringToTitle
@param {string} querystring querystring of url
@return {string} joined values of querystring
Title for search query shown in bookmarks list q f for @rohberg / volto - searchkit Add more querystring keys if needed @function querystringToTitle @param { string } querystring querystring of url @return { string } joined values of querystring
function querystringToTitle(querystring) {
  querystring = querystring
    .replaceAll('%3D', '%')
    .replaceAll('%3A', ':')
    .replaceAll('%2F', '/');
  querystring = decodeURI(querystring);
  let querystringvalues = [];
  ['q', 'f', 'Subject', 'SearchableText'].forEach((el) => {
    querystringvalues.push(_getValuesFromSearchquery(querystring, el));
  });
  return querystringvalues.filter((el) => el !== '').join(' | ');
}
function querystringToTitle ( querystring ) { querystring = querystring . replaceAll ( '%3D' , '%' ) . replaceAll ( '%3A' , ':' ) . replaceAll ( '%2F' , '/' ) ; querystring = decodeURI ( querystring ) ; let querystringvalues = [ ] ; [ 'q' , 'f' , 'Subject' , 'SearchableText' ] . forEach ( ( el ) => { querystringvalues . push ( _getValuesFromSearchquery ( querystring , el ) ) ; } ) ; return querystringvalues . filter ( ( el ) => el !== '' ) . join ( ' | ' ) ; }
Title for search query shown in bookmarks list
 q,f for @rohberg/volto-searchkit
 Add more querystring keys if needed
 @function querystringToTitle
 @param {string} querystring querystring of url
 @return {string} joined values of querystring
Title for search query shown in bookmarks list q f for @rohberg / volto - searchkit Add more querystring keys if needed @function querystringToTitle @param { string } querystring querystring of url @return { string } joined values of querystring
// TODO do proper decoding!