FriendsOfSymfony / FOSJsRoutingBundle

A pretty nice way to expose your Symfony routing to client applications.
1.48k stars 261 forks source link

Some special chars in path must not be percent-encoded #385

Closed ajgarlag closed 4 years ago

ajgarlag commented 4 years ago

These special chars /@:;,=+!*| must not be percent-encoded when they are used in path parameters.

See: https://github.com/symfony/symfony/blob/cd40bb8604ca7842f0ffbaa4ba0782865a976401/src/Symfony/Component/Routing/Generator/UrlGenerator.php#L56-L82

Actually, only / char is being restored after being encoded: https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/blob/7dfd2165c1170a73e5929e70fb80ef57f5539869/Resources/js/router.js#L251