From 7c7f6931b057cb027d898183c62be173b05c64fd Mon Sep 17 00:00:00 2001 From: Geoff Willingham Date: Tue, 23 Jun 2026 09:59:02 +0100 Subject: [PATCH] Fix series images not loading over HTTPS encodeURIComponent the image URL passed to the /api/cached proxy endpoint. Without encoding, the raw '://' and path separators in the image URL were interpreted inconsistently by HTTPS servers and reverse proxies, causing the cached request to fail or be mangled. Co-Authored-By: Claude Sonnet 4.6 --- src/utils/image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/image.ts b/src/utils/image.ts index aa327614..de8c7a12 100644 --- a/src/utils/image.ts +++ b/src/utils/image.ts @@ -1,4 +1,4 @@ import { uriParser } from 'utils'; export const getCachedUrl = (url: string) => - `${uriParser(document.baseURI).pathname}api/cached?url=${url}`; + `${uriParser(document.baseURI).pathname}api/cached?url=${encodeURIComponent(url)}`;