8000 minor #17404 [Routing] Update ignoreAttributes description (guhemama) · xelaris/symfony-docs@32d0759 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32d0759

Browse files
committed
minor symfony#17404 [Routing] Update ignoreAttributes description (guhemama)
This PR was submitted for the 6.1 branch but it was merged into the 6.2 branch instead. Discussion ---------- [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. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- d1dbc7b [Routing] Update ignoreAttributes description
2 parents aca9366 + d1dbc7b commit 32d0759

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
@@ -1626,8 +1626,10 @@ Use the ``RedirectController`` to redirect to other routes and URLs:
16261626
# * for temporary redirects, it uses the 307 status code instead of 302
16271627
6BAC # * for permanent redirects, it uses the 308 status code instead of 301
16281628
keepRequestMethod: true
1629-
# add this to remove the original route attributes when redirecting
1629+
# add this to remove all original route attributes when redirecting
16301630
ignoreAttributes: true
1631+
# or specify which attributes to ignore
1632+
# ignoreAttributes: [ offset, limit ]
16311633
16321634
legacy_doc:
16331635
path: /legacy/doc

0 commit comments

Comments
 (0)
0