about summary refs log tree commit diff stats
path: root/src/pages/background/background.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/background/background.js')
-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 00dd00d6..e3727e7c 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),
       };