We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c43532 commit 3fc89bcCopy full SHA for 3fc89bc
src/Symfony/Component/HttpKernel/EventListener/FragmentListener.php
@@ -58,7 +58,14 @@ public function onKernelRequest(GetResponseEvent $event)
58
{
59
$request = $event->getRequest();
60
61
- if ($request->attributes->has('_controller') || $this->fragmentPath !== rawurldecode($request->getPathInfo())) {
+ if ($this->fragmentPath !== rawurldecode($request->getPathInfo())) {
62
+ return;
63
+ }
64
+
65
+ if ($request->attributes->has('_controller')) {
66
+ // Is a sub-request: no need to parse _path but it should still be removed from query parameters as below.
67
+ $request->query->remove('_path');
68
69
return;
70
}
71
0 commit comments