FriendsOfSymfony/FOSJsRoutingBundle — pull request #26 by eXtreme (2012-03-27 13:48:10+00:00)
Title: Keep current flashes for one more request

Right now executing routing controller which responds with route json clears flashes for current request.
This pull request fixes this issue the same way it is fixed in symfony web profiler controller:
https://github.com/symfony/symfony/blob/2.0/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php#L127
This applies to 2.0, I'm not sure what about new symfony 2.1 because this code looks different in symfony's master branch:
https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php#L154