Steps to replicate the issue (include links if applicable):
- Go to https://meta.wikimedia.org/w/index.php?title=Special:GlobalContributions/Warudo&target=Warudo&dir=prev&offset=20250615162555%7C-6%7C1044273698
- Follow any of the red links in the edit summaries
What happens?:
You will land on a non-existent meta-wiki page
What should have happened instead?:
You should have landed on the Wikidata/enwiki page that the link should have pointed to. Those links were internal to the wiki the edit was made in but are interpreted as internal links to Meta instead.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Every red link in this screenshot should be blue and point to WD, not Meta.
EDIT: If a link starts with a prefix that is both a namespace name and an interwiki prefix you can end up on the right wiki but the wrong page. For example if I add the link [[WIkipedia:Articles for deletion]] to an edit summary on enwiki where wikipedia is the name of the project namespace and then go to Special:GlobalContributions the "wikipedia" gets interpreted as an interwiki prefix and the link ends up pointing to the mainspace page [[Articles for deletion]] (which also exists on enwiki). So the links don't always end up red. Sometimes they lead to the wrong page.
Acceptance Criteria:
- Links in revision comments on Special:GC should link back to their originating wiki, not to the current wiki
- If not feasible, then links should instead be plaintext so as to not link to incorrect/non-existent pages

