title: How to use anchors in Symfony routing?
body: <p>I have defined a route as followed in my routing.yml file : </p>
  
  <pre><code>route_name:
      path: "/dashboard#messages/{id}"
  </code></pre>
  
  <p>However when I ask Symfony to generate that route, I get :</p>
  
  <pre><code>/dashboard%23messages/12345
  </code></pre>
  
  <p>How can I skip the encoding part of the route generation? Or how can I escape the <code>#</code> char in the path definition? </p>
  
  <p>PS : Working with a (big) legacy system, I <strong>cannot change</strong> the urls.</p>