From 72abcc5cfd052dbe842adc3e11ccce5046134972 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Tue, 8 Aug 2023 09:02:51 +0300 Subject: [PATCH] Fixed AnonymousOverflow not redirecting q/ https://github.com/libredirect/browser_extension/issues/796 --- src/assets/javascripts/services.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 2e166d6..e0b9cf3 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -443,7 +443,6 @@ function redirect(url, type, initiator, forceRedirection) { return `${randomInstance}${url.pathname}${url.search}` } case "anonymousOverflow": { - if (!url.pathname.startsWith('/questions') && url.pathname != '/') return randomInstance if (url.hostname == "stackoverflow.com") { const threadID = /\/(\d+)\/?$/.exec(url.pathname) if (threadID) return `${randomInstance}/questions/${threadID[1]}${url.search}`