We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 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 ] );



85.5k

https://regex101.com/r/CzalFH/1

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