We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Percent sign in route fail to detect

Hi all,

I have a problem with a link which include the following %C2%AD%C2%AD%C2%AD%C2%AD%C2%AD characters. My rule in route is failing to catch those characters. The link is something like this: https://myserver.local/learn/bla-blallal-blalldl-and-dhhdh-wer-werwer-%C2%AD%C2%AD%C2%AD%C2%AD%C2%ADthat-rtyfgh-fghfghfg

$router->add( '/learn/{page:([a-zA-Z0-9_-]+)}', [ 'controller' => 'page', 'action' => 'index', 'page' => 1 ] );



seems like your regex just doesnt match. You probably want to encode special signs, urls are pretentious