about summary refs log tree commit diff stats
path: root/src/assets
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2023-09-02 12:28:19 +0300
committerManeraKai <manerakai@protonmail.com>2023-09-02 12:28:19 +0300
commit4529cc53aa61fe17511abea3dfc269d8455d39e1 (patch)
tree948643e9906ea6dd89c79ae4c5164bd3bf95c662 /src/assets
parentAdded x.com support https://github.com/libredirect/browser_extension/issues/7... (diff)
downloadlibredirect-4529cc53aa61fe17511abea3dfc269d8455d39e1.zip
Fixed Reverse not working with langs for Wikipedia https://github.com/libredirect/browser_extension/issues/800
Diffstat (limited to 'src/assets')
-rw-r--r--src/assets/javascripts/services.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index d0e1bdbc..573318ee 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -647,7 +647,6 @@ async function reverse(url) {
 			case "wikipedia": {
 				const lang = url.searchParams.get("lang")
 				if (lang != null) {
-					url.searchParams.delete("lang")
 					return `https://${lang}.wikipedia.org${url.pathname}${url.search}${url.hash}`
 				}
 				return `https://wikipedia.org${url.pathname}${url.search}${url.hash}`