docs: private String getSearchPageLink(String link, CmsSearch search) {
  
          if (m_searchRessourceUrl != null) {
              // for the form to generate we need params.
              String pageParams = "";
              int paramIndex = link.indexOf('?');
              if (paramIndex > 0) {
                  pageParams = link.substring(paramIndex);
              }
              StringBuffer formurl = new StringBuffer(m_searchRessourceUrl);
              if (m_searchRessourceUrl.indexOf('?') != -1) {
                  // the search page url already has a query string, don't start params of search-generated link
                  // with '?'
                  pageParams = new StringBuffer("&").append(pageParams.substring(1)).toString();
              }
              formurl.append(pageParams).toString();
              String formname = toPostParameters(formurl.toString(), search);
  
              link = new StringBuffer("javascript:document.forms['").append(formname).append("'].submit()").toString();
          }
          return link;
      }