title: Thymeleaf URL with multiple variables
body: <p>I'm using thymeleaf as template engine in my spring project.</p>
  
  <p><strong>My Problem is</strong>: I'm trying to submit my form to url that contains two variables, something like: </p>
  
  <p>mysite/bla/{id}/bla/{id2} (two variables in url). So, I'm trying with this:</p>
  
  <pre><code>th:href="@{/bla/{id}/bla/{id2} (id=${object1.id}, id2=${object2.id})}"
  </code></pre>
  
  <p>The console shows the error:</p>
  
  <p><em>"Skipping URI variable 'id' since the request contains a bind value with the same name."</em> So, someone has any ideia whats happening?</p>
  
  <p>Update:</p>
  
  <p>I changed the path to one variable, just to make some tests, and the problem still happening. The controller is very simple:</p>
  
  <pre><code>@PostMapping(value = "/{id}/bla")
      public ModelAndView salvarBug(MyObject object,
              @PathVariable("id") Long idObject1, Principal principal) {
                  objectService.save(object);
                  return new ModelAndView("redirect:"+idObject1);
      }
  </code></pre>
  
  <p>I updated the link in html too:</p>
  
  <pre><code>        &lt;form method="POST" th:object="${object}"
              th:action="@{/{id}/bla (id=${object.id})}"&gt;
  </code></pre>
  
  <p><strong>The real problem:</strong> an attribute was going null for database. Make no sense in this. I fix this.</p>