Skip to content

Commit

Permalink
fixing wrong variable usage for urlToRedirect
Browse files Browse the repository at this point in the history
fixes #17
  • Loading branch information
unixfox committed Dec 15, 2024
1 parent b6c6c0f commit a8c029a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/invidious_routes/latestVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a8c029a

Please sign in to comment.