about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKotuklion <quemasterbog@gmail.com>2021-07-12 18:48:52 +0200
committerKotuklion <quemasterbog@gmail.com>2021-07-12 18:48:52 +0200
commit010d19aff9f6ee4a46e6dad276bca16f8d3a1adb (patch)
tree1a6e05fbaaa27e59476b7824f25ef3d57325131e /src
parentleft some unnecessary spaces here and there (diff)
downloadlibredirect-010d19aff9f6ee4a46e6dad276bca16f8d3a1adb.zip
check host instead of the whole href for occurence of wikipedia.org
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 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),
       };