{"issue":{"created_at":"2011-11-29T17:42:11Z","state":"open","updated_at":"2011-11-29T17:42:11Z","user":{"gravatar_id":"3c97671a7c894f12fe6062196fcf2278","id":992685,"url":"https://api.github.com/users/thomas2411","avatar_url":"https://secure.gravatar.com/avatar/3c97671a7c894f12fe6062196fcf2278?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"thomas2411"},"comments":0,"body":"While preparing a new feature with sorting I have created a new action in controller which changes order field in object and the redirects back to listAction. Unfortunately I didn't manage to make work proper redirection, described here: https://groups.google.com/forum/?hl=pl#!topic/sonata-users/Dwyq7x4j5yQ\r\n\r\nThe problem is that GET params are changed meanwhile and there is no more filter array.\r\n\r\nI have used this:\r\n\r\n    return new RedirectResponse($this->admin->generateUrl('list', $this->admin->getFilterParameters()));\r\n\r\nas in function batchActionDelete($query).\r\n\r\nI have checked batch deletion and the result is the same, filter array is stripped and the GET params are being changed, so after redirection, ordering backs to default, not the one used in a URL.","assignee":null,"id":2388638,"number":429,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"title":"Redirect after batch action doesn't keep sort params","closed_at":null,"html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/429","url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/429","milestone":null},"action":"opened"}