8000 Minor tweaks for #1556 · skigun/symfony-docs@ed4ea54 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed4ea54

Browse files
committed
Minor tweaks for symfony#1556
1 parent e3615d7 commit ed4ea54

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cookbook/routing/redirect_in_config.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ Your configuration will look like this:
2828
2929
Your ``AppBundle`` is registered to handle all requests under ``/app``.
3030

31-
We configure a route for the ``/`` path and let :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController` handle it.
32-
This controller is builtin and offers two methods for redirecting request:
31+
We configure a route for the ``/`` path and let :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController`
32+
handle it. This controller is built-in and offers two methods for redirecting request:
3333

34-
* ``redirect`` redirects to another *route*. You must provide the ``route`` parameter with the *name* of the route you want to redirect to.
35-
* ``urlRedirect`` redirects to another *path*. You must provide the ``path`` parameter containing the path of the resource you want to redirect to.
34+
* ``redirect`` redirects to another *route*. You must provide the ``route``
35+
parameter with the *name* of the route you want to redirect to.
36+
37+
* ``urlRedirect`` redirects to another *path*. You must provide the ``path``
38+
parameter containing the path of the resource you want to redirect to.
3639

3740
The ``permanent`` switch tells both methods to issue a 301 HTTP status code.

0 commit comments

Comments
 (0)
0