Fix incorrect construction of URL to proxy to