Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitc4ff989

Browse files
authored
feature: redirect query params too in RedirectController
Adding documentation for the redirectAction improvement
1 parentd2ccdcf commitc4ff989

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎routing/redirect_in_config.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Redirecting Using a Route
9696

9797
Assume you are migrating your website from WordPress to Symfony, you want to
9898
redirect ``/wp-admin`` to the route ``sonata_admin_dashboard``. You don't know
99-
the path, only the route name. This can be achieved using the
99+
the path, only the route name, if you pass query parameters to this route, it will be redirected too. This can be achieved using the
100100
:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController::redirectAction`
101101
action:
102102

@@ -155,3 +155,4 @@ action:
155155
Because you are redirecting to a route instead of a path, the required
156156
option is called ``route`` in the ``redirect()`` action, instead of ``path``
157157
in the ``urlRedirect()`` action.
158+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp