From 59c1465c975a96c6b4771396da7f47dcfebf90a9 Mon Sep 17 00:00:00 2001 From: Hygna Date: Thu, 27 Oct 2022 14:28:52 +0100 Subject: [PATCH] Added support for copying raw wikipedia url Closes https://github.com/libredirect/libredirect/issues/501 --- src/assets/javascripts/services.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 34bd865..1e50b43 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -522,6 +522,7 @@ function reverse(url, urlString) { case "reuters": case "quora": case "medium": + case "wikipedia": if (!urlString) resolve(config.services[service].url + url.pathname + url.search) else resolve(url.replace(/https?:\/{2}(?:[^\s\/]+\.)+[a-zA-Z0-9]+/, config.services[service].url)) return