title: Symfony2: #id in url to focus element
body: <p>I have this navigation with links like this:
  <code>href="http://mamgrow.lt/veikla.php#konkursai"</code></p>
  
  <p>So it opens a page with element with <code>id='konkursai'</code> focused.</p>
  
  <p>How can I do this in Symfony?</p>
  
  <p>My pages are created as actions and links to them are described in routing.yml</p>
  
  <p>MainController:</p>
  
  <pre><code>public function aboutUsAction() {
      return $this-&gt;render('MamgrowMainBundle:Main:about-us.html.twig');
  }
  
  public function activitiesAction() {
      return $this-&gt;render('MamgrowMainBundle:Main:activities.html.twig');
  }
  
  public function contactsAction() {
      return $this-&gt;render('MamgrowMainBundle:Main:contacts.html.twig');
  }
  </code></pre>
  
  <p>routing.yml:</p>
  
  <pre><code>about-us:
      path:     /apie-mus
      defaults: { _controller: MamgrowMainBundle:Main:aboutUs }
  
  contacts:
      path:     /kontaktai
      defaults: { _controller: MamgrowMainBundle:Main:contacts }
  
  activities:
      path:     /veikla
      defaults: { _controller: MamgrowMainBundle:Main:activities }
  </code></pre>