Skip to content

Optional parameter not patch url #25

@riso348

Description

@riso348

Hi,
in previous version, was able to write this route:
$router->add('/ajax/{a:action}{?:params}', 'GET', function ($action) ..
and Router match

/ajax/getModalContent/?ajax=true&action=getModalContent ...
/ajax/getModalContent?ajax=true&action=getModalContent ...
//ajax/getModalContent/?ajax=true&action=getModalContent ...

There was no problem in slashes, in v2 i have
Page not found

Is it bug or its not allowed in new version?
Do i have to change urls in router to '/ajax/{a:action}/{?:params}' so every arguments will be separated by / ?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions