Append the query to the url in the DoRedirect method.