Fixed redirects to include query params.