Fixed Reverse not working with langs for Wikipedia https://github.com/libredirect/browser_extension/issues/800
This commit is contained in:
parent
e06a0a1a97
commit
4529cc53aa
|
@ -647,7 +647,6 @@ async function reverse(url) {
|
||||||
case "wikipedia": {
|
case "wikipedia": {
|
||||||
const lang = url.searchParams.get("lang")
|
const lang = url.searchParams.get("lang")
|
||||||
if (lang != null) {
|
if (lang != null) {
|
||||||
url.searchParams.delete("lang")
|
|
||||||
return `https://${lang}.wikipedia.org${url.pathname}${url.search}${url.hash}`
|
return `https://${lang}.wikipedia.org${url.pathname}${url.search}${url.hash}`
|
||||||
}
|
}
|
||||||
return `https://wikipedia.org${url.pathname}${url.search}${url.hash}`
|
return `https://wikipedia.org${url.pathname}${url.search}${url.hash}`
|
||||||
|
|
Loading…
Reference in New Issue