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"