title: Using model attributes in a th:href link
body: <p>Is there a way of referencing a model attribute in a th:href link? For example</p>
  
  <pre><code>&lt;a th:text="${currentUser}" th:href="@{/user/{currentUser}}"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Here, <em>currentUser</em> is a model variable as specified in a controller. This can be accessed easily as seen in the <em>th:text</em> tag. However, the <em>th:href</em> fails the thymeleaf parsing. If there any way of referencing a model attribute in this way, in the <em>th:href</em>? For reference, this is a Spring MVC (bootstrap) application with Thymeleaf support.</p>