From a8c029a271679055b22c97407a49223b0c03038d Mon Sep 17 00:00:00 2001 From: Emilien <4016501+unixfox@users.noreply.github.com> Date: Mon, 16 Dec 2024 00:04:37 +0100 Subject: [PATCH] fixing wrong variable usage for urlToRedirect fixes #17 --- src/routes/invidious_routes/latestVersion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/invidious_routes/latestVersion.ts b/src/routes/invidious_routes/latestVersion.ts index 2562534..4545801 100644 --- a/src/routes/invidious_routes/latestVersion.ts +++ b/src/routes/invidious_routes/latestVersion.ts @@ -71,7 +71,7 @@ latestVersion.get("/", async (c) => { const itagUrlParsed = new URL(itagUrl); let urlToRedirect = itagUrlParsed.toString(); if (local) { - urlToRedirect = itagUrlParsed.pathname + urlToRedirect.search + + urlToRedirect = itagUrlParsed.pathname + itagUrlParsed.search + "&host=" + itagUrlParsed.host; } return c.redirect(urlToRedirect);