fix append rawqurey to the redirect location.