Skip to content

Commit ce45b71

Browse files
author
Hugo Hamon
committed
[book] fixes typo about redirect status codes in the controller chapter.
1 parent f1c30e4 commit ce45b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ If you want to redirect the user to another page, use the ``redirectToRoute()``
438438
return $this->redirectToRoute('homepage');
439439

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

444444
.. versionadded:: 2.6

0 commit comments

Comments
 (0)