Fixed Reverse not working with langs for Wikipedia https://github.com/libredirect/browser_extension/issues/800

This commit is contained in:
ManeraKai 2023-09-02 12:28:19 +03:00
parent e06a0a1a97
commit 4529cc53aa
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 0 additions and 1 deletions

View File

@ -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}`