diff --git a/apps/api/src/scraper/WebScraper/single_url.ts b/apps/api/src/scraper/WebScraper/single_url.ts index cd76793c3..3546217dd 100644 --- a/apps/api/src/scraper/WebScraper/single_url.ts +++ b/apps/api/src/scraper/WebScraper/single_url.ts @@ -447,7 +447,7 @@ export async function scrapSingleUrl( let linksOnPage: string[] | undefined; if (pageOptions.includeLinks) { - linksOnPage = extractLinks(rawHtml, urlToScrap); + linksOnPage = extractLinks(html, urlToScrap); } let document: Document = {