Preserve query string in logs_rest API redirects.

Found out we were dropping query parameters on the redirect here.