diff --git a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php index ff0d4c0739..3226be3ada 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php @@ -125,6 +125,11 @@ class ProfilerController extends ContainerAware */ public function toolbarAction($token, $position = null) { + $request = $this->container->get('request'); + + // keep current flashes for one more request + $request->setFlashes($request->getFlashes()); + if (null === $token) { return new Response(); }