title: How Generating URLs from a template correctly in Symfony2/Twig
body: <p>I'm working with Symfony2 and:</p>
  
  <p>I have this in the routing.yml</p>
  
  <pre><code>_welcome:
      resource: "@AcmeBundle/Controller/"
      type:     annotation
  </code></pre>
  
  <p>I this method within a controller:</p>
  
  <pre><code>/**
   * @Route("/{page}")
   */
  public function staticAction($page)
  {
      return $this-&gt;render('AcmeBundle:Static:'.$page.'.html.twig');
  }
  </code></pre>
  
  <p>To generate common pages:</p>
  
  <pre><code>/home
  /contact 
  /privacy
  </code></pre>
  
  <p>But when I make the url on the menu:</p>
  
  <pre><code>&lt;a href="{{ path('_welcome', {'page': 'home'}) }}"&gt;Home&lt;/a&gt;
  &lt;a href="{{ path('_welcome', {'page': 'contact'}) }}"&gt;Contact&lt;/a&gt;
  &lt;a href="{{ path('_welcome', {'page': 'privacy'}) }}"&gt;Privacy&lt;/a&gt;
  </code></pre>
  
  <p>And I Symfony generates these urls:</p>
  
  <pre><code>…./?page=home
  …./?page=contact
  …./?page=privacy
  </code></pre>
  
  <p>And the right would be:</p>
  
  <pre><code>/home
  /contact
  /privacy
  </code></pre>
  
  <p>What must I do?</p>