From 8e0bafae8168e98971724e08ba62844176eff86d Mon Sep 17 00:00:00 2001 From: Simon Eklundh Date: Sun, 4 Jan 2026 12:34:23 +0100 Subject: [PATCH] Update fetch call to check API reachability the original version of this code calls "https://jellyfin.domain.tld". this works for most people. some people however don't have a properly set up reverse proxy. by adding a forward slash, we remove the issue for users who have reverse proxies that don't redirect from "https://jellyfin.domain.tld" to "https://jellyfin.domain.tld/" --- providers/NetworkStatusProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/NetworkStatusProvider.tsx b/providers/NetworkStatusProvider.tsx index d44caac6..b07a9076 100644 --- a/providers/NetworkStatusProvider.tsx +++ b/providers/NetworkStatusProvider.tsx @@ -24,7 +24,7 @@ const NetworkStatusContext = createContext( async function checkApiReachable(basePath?: string): Promise { if (!basePath) return false; try { - const response = await fetch(basePath, { method: "HEAD" }); + const response = await fetch(basePath + "/", { method: "HEAD" }); return response.ok; } catch { return false;