Skip to content

Commit 73ecd3c

Browse files
committed
minor #401 Modify default routing parameter on indexAction (hanahiroAze)
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}"
2 parents 61aeacb + 1cc1f9c commit 73ecd3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AppBundle/Controller/BlogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
class BlogController extends Controller
3535
{
3636
/**
37-
* @Route("/", defaults={"page": 1}, name="blog_index")
37+
* @Route("/", defaults={"page": "1"}, name="blog_index")
3838
* @Route("/page/{page}", requirements={"page": "[1-9]\d*"}, name="blog_index_paginated")
3939
* @Method("GET")
4040
* @Cache(smaxage="10")

0 commit comments

Comments
 (0)