Skip to content

Commit

Permalink
[book] fixes typo about redirect status codes in the controller chapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Hamon committed Feb 3, 2016
1 parent f1c30e4 commit ce45b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/controller.rst
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ If you want to redirect the user to another page, use the ``redirectToRoute()``
return $this->redirectToRoute('homepage');

// redirectToRoute is equivalent to using redirect() and generateUrl() together:
// return $this->redirect($this->generateUrl('homepage'), 301);
// return $this->redirect($this->generateUrl('homepage'));
}

.. versionadded:: 2.6
Expand Down

0 comments on commit ce45b71

Please sign in to comment.