It uses the URL comprised of using your HTTP_SERVER plus your DIR_WS_CATALOG settings from your /includes/configure.php file, just like the rest of your store does.