fix(github): url is truncated

This commit is contained in:
2025-12-01 11:41:40 +01:00
parent ecb68ee78b
commit 16e8b24fe4

View File

@@ -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"