Altered the redirect to use symfony's RedirectResponse.