8000 [FrameworkBundle] keep query params in redirection · symfony/symfony@63736e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 63736e7

Browse files
author
Amrouche Hamza
committed
[FrameworkBundle] keep query params in redirection
1 parent 7b8934b commit 63736e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Controller/RedirectController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function redirectAction(Request $request, string $route, bool $permanent
6262

6363
$attributes = array();
6464
if (false === $ignoreAttributes || is_array($ignoreAttributes)) {
65-
$attributes = $request->attributes->get('_route_params');
65+
$attributes = \array_merge($request->query->all(), $request->attributes->get('_route_params'));
6666
unset($attributes['route'], $attributes['permanent'], $attributes['ignoreAttributes'], $attributes['keepRequestMethod']);
6767
if ($ignoreAttributes) {
6868
$attributes = array_diff_key($attributes, array_flip($ignoreAttributes));

0 commit comments

Comments
 (0)
0