Skip to content

Commit

Permalink
minor #401 Modify default routing parameter on indexAction (hanahiroAze)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Modify default routing parameter on indexAction

I found $page parameter's type on default routing is different from that of "/page/{page}" routing.
This difference seems not to be reasonable, then I fix it.

Commits
-------

1cc1f9c modify default param page's type for / on BlogController to be same as that of "/page/{page}"
  • Loading branch information
javiereguiluz committed Nov 18, 2016
2 parents 61aeacb + 1cc1f9c commit 73ecd3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AppBundle/Controller/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
class BlogController extends Controller
{
/**
* @Route("/", defaults={"page": 1}, name="blog_index")
* @Route("/", defaults={"page": "1"}, name="blog_index")
* @Route("/page/{page}", requirements={"page": "[1-9]\d*"}, name="blog_index_paginated")
* @Method("GET")
* @Cache(smaxage="10")
Expand Down

0 comments on commit 73ecd3c

Please sign in to comment.