Allow users to use \$BASEURL in discoveryUrl.