Clear the uri query before constructing a new URL.