Added autodetect BASEURL