summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pages/background/background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js
index 00dd00d..e3727e7 100644
--- a/src/pages/background/background.js
+++ b/src/pages/background/background.js
@@ -601,7 +601,7 @@ browser.webRequest.onBeforeRequest.addListener(
redirect = {
redirectUrl: redirectGoogleTranslate(url, initiator),
};
- } else if (url.href.match(wikipediaRegex)) {
+ } else if (url.host.match(wikipediaRegex)) {
redirect = {
redirectUrl: redirectWikipedia(url, initiator),
};