From 4529cc53aa61fe17511abea3dfc269d8455d39e1 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sat, 2 Sep 2023 12:28:19 +0300 Subject: [PATCH] Fixed Reverse not working with langs for Wikipedia https://github.com/libredirect/browser_extension/issues/800 --- src/assets/javascripts/services.js | 1 - 1 file changed, 1 deletion(-) 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}`