Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ed4ea54

Browse filesBrowse files
committed
Minor tweaks for symfony#1556
1 parent e3615d7 commit ed4ea54
Copy full SHA for ed4ea54

File tree

Expand file treeCollapse file tree

1 file changed

+7
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-4
lines changed

‎cookbook/routing/redirect_in_config.rst

Copy file name to clipboardExpand all lines: cookbook/routing/redirect_in_config.rst
+7-4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.