title: window.location.href on thymeleaf
body: <p>I have this piece of code in my Thymeleaf template but it does not work properly since this is the location generated</p>
  
  <pre><code>deviceevent/@%7B/deviceevent/list/%7Bid%7D(id=$%7BdeviceEvent.id%7D)%7D
  </code></pre>
  
  <p>in the template</p>
  
  <pre><code>&lt;tr th:each="deviceEvent : ${deviceEvents}"  onclick="window.location.href = '@{/deviceevent/list/{id}(id=${deviceEvent.id})}'" &gt;
  </code></pre>