Skip to content

Commit 26d8f84

Browse files
committed
minor #6220 [book] fixes typo about redirect status codes in the controller chapter. (hhamon)
This PR was merged into the 2.7 branch. Discussion ---------- [book] fixes typo about redirect status codes in the controller chapter. | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.6+ | Fixed tickets | ~ Commits ------- ce45b71 [book] fixes typo about redirect status codes in the controller chapter.
2 parents f1c30e4 + ce45b71 commit 26d8f84

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)