title: How to generate routes ignoring extra passed parameters
body: <p>Lets say that i have the following route annotations for a controller action:</p>
  
  <pre><code>* @Route("/post/{post_id}/", name="post.view")
  * @Route("/post/", name="post.current_view")
  </code></pre>
  
  <p>And I want to use twig to generate the url for this:</p>
  
  <pre><code>{{ url(basePath~'view', {'post_id':post.postId}) }}
  //basePath will either be "post." or "post.current_"
  </code></pre>
  
  <p>What i currently get is:</p>
  
  <pre><code>domain.com/post/1/
  domain.com/post/?post_id=1
  </code></pre>
  
  <p>What i want though is for the second route to be generated ignoring any "EXTRA" parameters passed to it so that i would only get:</p>
  
  <pre><code>domain.com/post/
  </code></pre>
  
  <p>Does anyone know if this is something that can be natively accomplished? I know i could right a custom twig function that uses the router and then i can generate the routes and strip the query string but i want to avoid that if there is an easy toggle somewhere that i have missed. </p>