title: twig path() function generating different outcome
body: <p>I am trying to add dynamic links to my twig template by calling path() with a parameter.</p>
  
  <pre><code>{{ path('single_sale_submit_page', {'id': book['id']}) }}
  </code></pre>
  
  <p>I use annotation in my controller:</p>
  
  <pre><code>@Route("/book/{id}", name="single_sale_submit_page")
  </code></pre>
  
  <p>This results in the following url: ../book/?id=123456789. I keep getting the error that my controller needs a mandatory parameter, which is of course true cause the generated url has a different syntax(?).</p>
  
  <p>How can I set up twig in a way that the generated url from path() corresponds to </p>
  
  <pre><code>../book/123456789
  </code></pre>
  
  <p>and not </p>
  
  <pre><code>../book/?id=123456789
  </code></pre>
  
  <p>EDIT:
  This <a href="https://stackoverflow.com/questions/15689688/symfony2-twig-path-with-parameter-url-creation">question</a> has somewhat the same question as I have. </p>