title: Symfony2 Routing annotation gets url encoded
body: <p>I've playing around with annotations in Symfony2.5 and am struggling to output a nice clean url like this:</p>
  
  <pre><code>.../display&amp;type=foo&amp;id=1
  </code></pre>
  
  <p>What I always get is:</p>
  
  <pre><code>.../display%26type=foo%26id=1
  </code></pre>
  
  <p>Why is Symfony2 url encoding this?</p>
  
  <p>My controller looks like this:</p>
  
  <pre><code>/**
   * Displays content
   *
   * @Route("/display/type={type}&amp;id={id}", name="content_display")
   * @Template(...)
   */
  public function displayAction($type, $id = null) {
  ...
  }
  </code></pre>
  
  <p>my twig template has:</p>
  
  <pre><code>&lt;a href="{{ path('content_display', {'type': type, 'id': entity.id}) }}"&gt;{{ entity.id }}. {{ entity.name }}&lt;/a&gt;&lt;br /&gt;
  </code></pre>
  
  <p>So I've tried to add <code>|raw</code> and autoescape off tags described <a href="http://twig.sensiolabs.org/doc/tags/autoescape.html" rel="nofollow">here</a>. But no luck so far, any ideas?</p>
  
  <p>Thanks!</p>