add query to uri for inner get request