Skip to content

Commit

Permalink
Fixed Reverse not working with langs for Wikipedia #800
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Sep 2, 2023
1 parent e06a0a1 commit 4529cc5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 4529cc5

Please sign in to comment.