title: Thymeleaf: add parameter to current url
body: <p>I'm at</p>
  
  <pre><code>http://example.com/some/page?p1=11
  </code></pre>
  
  <p>and I want to add a parameter to current url without having to redefine it:</p>
  
  <pre><code>http://example.com/some/page?p1=11&amp;p2=32
  </code></pre>
  
  <p>with something like:</p>
  
  <pre><code>&lt;a th:href="@{?(p2=32)}"&gt;Click here&lt;/a&gt;
  </code></pre>
  
  <p>but the above code return <code>http://example.com/some/page?&amp;p2=32</code> (removes the <code>p1</code> parameter).</p>
  
  <p>How can I do it using <strong>Thymeleaf</strong>?</p>