Hello,
I have a problem with defiing a route with optional frangment on it. I saw that there's a possibility to use /:params but I would prefer not to. I would rather want to use a route with only pagination param defined as an optional like:
/my-controller/my-action(/page/{page:[0-9]+})?
This sadly doesn't work as expected. It generates me withing a route while using Url helper question mart at the end:
/my-controller/my-action?
Is there a possibility to do it using standard router, cause this would allow me to define a controller action like
public function myAction($page = 1) {}
?
Best regards