From 16e8b24fe40211d75cd178cda4b898936c6b66ce Mon Sep 17 00:00:00 2001 From: setop Date: Mon, 1 Dec 2025 11:41:40 +0100 Subject: [PATCH] fix(github): url is truncated --- background.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/background.js b/background.js index c6b222a..8d2f31d 100644 --- a/background.js +++ b/background.js @@ -27,9 +27,8 @@ browser.webRequest.onBeforeRequest.addListener( if (org === "login") { // OAuth2 path return } - repo = path[2]; return { - redirectUrl: `https://${GOTHUB}/${org}/${repo}` + redirectUrl: `https://${GOTHUB}${url.pathname}` }; } else if (url.hostname === "www.reddit.com") { url.hostname = "old.reddit.com"