fuc-new/doc/node_modules/@vuepress/plugin-seo/lib/node/utils/getUrl.js
hellcat 6adbc04d4b 1
2025-10-03 17:17:08 +08:00

3 lines
247 B
JavaScript

import { isLinkHttp, removeEndingSlash, removeLeadingSlash, } from 'vuepress/shared';
export const getUrl = (hostname, base, url) => `${removeEndingSlash(isLinkHttp(hostname) ? hostname : `https://${hostname}`)}${base}${removeLeadingSlash(url)}`;