Skip to content

Commit 3578b2d

Browse files
authored
[Routing] Update ignoreAttributes description
The documentation does not mention one can ignore all attributes or specify which of them to ignore. This is pretty clear to someone calling `\Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction`, but not to someone using YAML.
1 parent c5262ec commit 3578b2d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,8 +1616,10 @@ Use the ``RedirectController`` to redirect to other routes and URLs:
16161616
# * for temporary redirects, it uses the 307 status code instead of 302
16171617
# * for permanent redirects, it uses the 308 status code instead of 301
16181618
keepRequestMethod: true
1619-
# add this to remove the original route attributes when redirecting
1619+
# add this to remove all original route attributes when redirecting
16201620
ignoreAttributes: true
1621+
# or specify which attributes to ignore
1622+
# ignoreAttributes: [ offset, limit ]
16211623
16221624
legacy_doc:
16231625
path: /legacy/doc

0 commit comments

Comments
 (0)