title: Send inputText value to next page as parameter in the url and recover it eventually
body: <p>I found lots of similar questions, but none of the solutions worked for me.</p>
  
  <p>I have this inputText field in which the user types a text, and this text is saved in my bean:</p>
  
  <pre><code>&lt;h:inputText value="#{searchBean.param}"/&gt;
  </code></pre>
  
  <p>Then there's this button that when clicked, executes a search algorithm and then redirects the user to the results page, like this:</p>
  
  <pre><code>&lt;h:commandButton value="Botao" action="#{searchBean.execute}"/&gt;
  </code></pre>
  
  <p>The execute method:</p>
  
  <pre><code>public String execute() {
        levenshtein(this.param);
        return "results";
  }
  </code></pre>
  
  <p>This will forward the user to ..../results.xhtml, and i need this link to be like this:</p>
  
  <p>.../results.xhtml?equation="whatever the user intended to search"&amp;pagenumber="current page number"</p>
  
  <p>When I click on a link in this page, I'm redirected outside my site, say to wikipedia, and then when I click the back button on my browser, I need to be able to recover what the I searched for and the page I was.</p>
  
  <p>I spent quite some time trying to find out how to do this and every attempt failed, please help me, thank you.</p>