We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1d1df6 commit 29c2becCopy full SHA for 29c2bec
controller.rst
@@ -144,6 +144,8 @@ and ``redirect()`` methods::
144
// return new RedirectResponse($this->generateUrl('homepage'));
145
146
// does a permanent HTTP 301 redirect
147
+ return $this->redirectToRoute('homepage', [], 301);
148
+ // if you prefer, you can use PHP constants instead of hardcoded numbers
149
return $this->redirectToRoute('homepage', [], Response::HTTP_MOVED_PERMANENTLY);
150
151
// redirect to a route with parameters
0 commit comments