From 9df02610711a78eff7a8c7435c3f31e517256283 Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 8 Oct 2025 12:00:03 +0100 Subject: [PATCH] fix: correct Jina AI Reader proxy URL format - Remove hardcoded http:// prefix in proxy URL - Preserve original protocol (http/https) when constructing proxy URL - Fix: https://r.jina.ai/https://example.com instead of /http://example.com - Resolves metadata fetching issues for HTTPS URLs --- src/services/readerService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/readerService.ts b/src/services/readerService.ts index b97f5815..27c3b133 100644 --- a/src/services/readerService.ts +++ b/src/services/readerService.ts @@ -57,7 +57,7 @@ function saveToCache(url: string, content: ReadableContent): void { function toProxyUrl(url: string): string { // Ensure the target URL has a protocol and build the proxy URL const normalized = /^https?:\/\//i.test(url) ? url : `https://${url}` - return `https://r.jina.ai/http://${normalized.replace(/^https?:\/\//, '')}` + return `https://r.jina.ai/${normalized}` } export async function fetchReadableContent(