title: Thymeleaf button call url with parameters in new tab
body: <p>How can I create a button in thymeleaf to act as a link and opens in a new tab with some given parameters?</p>
  
  <p>I tried this one but now works:</p>
  
  <pre><code>&lt;button th:onclick="window.open('https://www.google.com/location/' + ${id})"&gt; GO&lt;/button&gt;
  </code></pre>
  
  <p>It does not work when I'm using variables (<code>${id}</code>)</p>