[fix] build_link should consider virtual hosts before defining a url as external