From 4d86433e0f891366a8d2b7071e9504f01f300a81 Mon Sep 17 00:00:00 2001 From: Nils Date: Tue, 3 Jan 2023 15:09:14 +0100 Subject: [PATCH] fix gallery redirect, closes #72 --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index e38bf9a..abb306e 100644 --- a/background.js +++ b/background.js @@ -18,7 +18,7 @@ chrome.webRequest.onBeforeRequest.addListener( } if (url.pathname.indexOf("/gallery") === 0) { - return { redirectUrl: oldReddit + url.pathname.slice("/gallery".length) }; + return { redirectUrl: oldReddit + '/comments' + url.pathname.slice("/gallery".length) }; } return { redirectUrl: oldReddit + url.pathname + url.search + url.hash };