fixing the typequery url