Replace the hardcoded server URLs in queries with the known server URL