Skip to content

Commit d5e9b34

Browse files
authored
Correct outdated/incorrect comment in code snippet
The given arguments are passed to the route, not to the template.
1 parent c5fc086 commit d5e9b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ Use the ``RedirectController`` to redirect to other routes and URLs:
13741374
->controller(RedirectController::class)
13751375
->defaults([
13761376
'route' => 'doc_page',
1377-
// optionally you can define some arguments passed to the template
1377+
// optionally you can define some arguments passed to the route
13781378
'page' => 'index',
13791379
'version' => 'current',
13801380
// redirections are temporary by default (code 302) but you can make them permanent (code 301)

0 commit comments

Comments
 (0)