Skip to content

Fix WikiBlame URL#54

Merged
MusikAnimal merged 2 commits intowikimedia-gadgets:masterfrom
nardog:patch-1
Dec 6, 2025
Merged

Fix WikiBlame URL#54
MusikAnimal merged 2 commits intowikimedia-gadgets:masterfrom
nardog:patch-1

Conversation

@nardog
Copy link
Copy Markdown
Contributor

@nardog nardog commented Nov 26, 2025

For WikiBlame, lang and project are just the third- and second-level domains. So the link did not work on the MediaWiki wiki, Test Wikipedia, etc.

The patch assumes the domain name consists of three levels (as does WikiBlame), but we already do so for copyvio-detector as well, and it probably works for all WMF wikis. I could have used Array.prototype.at() but it's not supported by all Grade A browsers.

@MusikAnimal MusikAnimal merged commit e0fd79b into wikimedia-gadgets:master Dec 6, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants