title: Thymeleaf URL Syntax is is confusing
body: <p>So I'm trying to generate (dynamic) links through Thymeleaf.</p>
  
  <p>Now the first url I want to link to is /resource/id so I have the following:</p>
  
  <pre><code>&lt;a th:href="|/resource/${resource.id}|" href="#" class="btn btn-default"&gt;Edit...&lt;/a&gt;
  </code></pre>
  
  <p>Which works great, and does exactly what you would expect.</p>
  
  <p>So the next url I want to link to is /resource/id/child/id so I try the following:</p>
  
  <pre><code>&lt;a th:href="|/resource/${resource.id}/child/${child.id}|" href="#" class="btn btn-default"&gt;Edit...&lt;/a&gt;
  </code></pre>
  
  <p>Which I thought would give me what I wanted. Instead I get:</p>
  
  <pre><code>/resource/3/child%7D?id=4
  </code></pre>
  
  <p>Which is weird and confusing. I'm not really sure why this happens or how to get what I want which is:</p>
  
  <pre><code>/resource/3/child/4
  </code></pre>
  
  <p>Any help greatly appreciated. I'm using spring-boot/spring-mvc if it makes any difference.</p>
  
  <p><strong>Update</strong>:
  Okay, so after re-reading (and comprehending) the documentation, it turns out the the more correct syntax is:</p>
  
  <pre><code>&lt;a th:href="@{/resource/{rid}/child/{cid}(rid=${resource.id} cid=${child.id})}" href="#" class="btn btn-default"&gt;Edit...&lt;/a&gt;
  </code></pre>
  
  <p>Now I get the url:</p>
  
  <pre><code>/resource/3/child?id=4
  </code></pre>
  
  <p>Which while very close is still slightly wrong and confusing.</p>
  
  <p>Does Thymeleaf not support more than one path variable?</p>