From 2ff1b1c76975e134ae9eb7b5087ceda82097c454 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 1 May 2024 10:56:59 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20don't=20strip=20port=20in=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/indexing/docs/crawl.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,