Symfony: deal with "%" escaped symbols in URL

I have Symfony 1.4 web-application. Let's say my app is hosted on example.com and there is FAQ page there.

When I refer to my app like this: http://example.com/faq#faq1 everything works fine. But when "#" is escaped: http://example.com/faq%23faq1

I see the following message in log produced by symfony:

[err] {sfError404Exception} Empty module and/or action after parsing the URL "/faq#faq1" (/).

So, it looks like Symfony recognizes there is "#" but fails to route it correctly.

routing.yml:

faq:
  url: /faq
  param: { module: static, action: faq }
  requirements:
    sf_method: [get]

How do I make Symfony to route URL with escaped characters correctly?

Answers


It's not a Symfony problem. It's not your problem. The problem come from people who escape #.

I took few examples:

Etc ... etc ...


Need Your Help

Passing parameters to HTML5

javascript html5 parameters

I am using Moodle to display some videos. The video player required a handwritten viewer to limit the controls, as I can't allow the viewer to fast forward through the video. I have about 30 videos...