Description
From Telegram on March 20, 2026:
I think I found a problem with Z6839 when trying to get https://en.wikipedia.org/wiki/Victoria_(state) from Q36687. I've added some tests. The NSW one just fails because I can't make the same sitelink synthetically to compare to. But the Vic one returns nothing. I wonder if it's to do with the brackets in the URL?
Steps to reproduce
Please see these 2 failing tests
Observed behavior
- See above
Expected behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- It should be possible to retrieve any site link, for a given item, which is present in Wikidata.
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist