diff --git a/core/indexing/docs/crawl.ts b/core/indexing/docs/crawl.ts index a0a8b0099..e62c8d76e 100644 --- a/core/indexing/docs/crawl.ts +++ b/core/indexing/docs/crawl.ts @@ -113,7 +113,9 @@ async function getLinksFromUrl(url: string, path: string) { } function splitUrl(url: URL) { - const baseUrl = `${url.protocol}//${url.hostname}`; + const baseUrl = `${url.protocol}//${url.hostname}${ + url.port ? ":" + url.port : "" + }`; const basePath = url.pathname; return { baseUrl,