title: Thymeleaf using path variables to th:href
body: <p>Here's my code, where I'm iterating through:</p>
  
  <pre><code>&lt;tr th:each="category : ${categories}"&gt;
       &lt;td th:text="${category.idCategory}"&gt;&lt;/td&gt;
       &lt;td th:text="${category.name}"&gt;&lt;/td&gt;
       &lt;td&gt;
           &lt;a th:href="@{'/category/edit/' + ${category.id}}"&gt;view&lt;/a&gt;
       &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>The URL it points to is supposed to be <code>/category/edit/&lt;id of the category&gt;</code>, but it says it could not parse the expression:</p>
  
  <blockquote>
    <p>Exception evaluating SpringEL expression: "category.id"
    (category-list:21)</p>
  </blockquote>