From 9fc3fccf655f947da848a3571dc3fa7a10d9a727 Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 21:07:32 -0700 Subject: [PATCH] fix: don't redirect redd.it for teddit redd.it redirects don't work for teddit, so don't do it. --- src/pages/background/background.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 87bc8dd..92502dc 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -482,6 +482,12 @@ function redirectReddit(url, initiator, type) { } else { return null; } + } else if (url.host === "redd.it") { + if (redditInstance.includes("teddit")) { + // As of 2021-04-22, redirects for teddit on redd.it links don't work: + // they take you to the home page. + return null; + } } return `${redditInstance}${url.pathname}${url.search}`; }