winzou/mooc-symfony

Default page number is skipped

Opened this issue · 0 comments

When I tried to launch the homepage "app_web.php" in iteration 3, I got an error when I don't specify a page number. The default value in routing.yml was skipped.

I solved it by changing the regexp "\d*" to "\d+".

I think that's because the first one matches zero or more numbers while the second matches one or more numbers.