If a variable containing commas is used in the URL, these commas are changed to the encoded version. For example this: ```php $router->withModule('Front')->addRoute('/tags[:<slugs>]', [ 'presenter' => 'Tag', 'action' => 'default', ]); ``` with string variable "music,sports" generates this: www.example.com/tags:music%2Csports It would be great to be able to keep the commas in their original form and make a nice URL like: www.example.com/tags:music,sports Would it be please possible to change the router accordingly?
Activity
dg commentedon Dec 7, 2023
Reference: https://datatracker.ietf.org/doc/html/rfc3986
segment can contains characters
ALPHA / DIGIT / "-" / "." / "_" / "~" / "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" / ":" / "@"Route::param2path() allows all characters defined by RFC 3986 [Closes #…