Page MenuHomePhabricator

On action=info for items, links to Special:EntityUsage on subscribed sites are broken for some wiki ids.
Closed, ResolvedPublic


On, in the "Wikis subscribed to this entity" section, only wikipedias are linked. Other wikis, like wikiquote, are note.

This is probably due to the the links are currently created using the LinkRenderer class, which uses interwiki prefixes. We do not have individual interwiki prefixes for all the wikisource projects - "chained" interwikis would have to be used, e.g. en:wikisource:Special:EntityUsage.

Proposed solution: generate HTML directly instead of using LinkRenderer. We already have code for linking to these sites in SiteLinksView. The relevant code should be factored out and re-used.

Event Timeline

daniel triaged this task as High priority.Oct 31 2016, 5:15 PM

Bumping to high, since this is obviously a bug. The intended functionality is only available for Wikipedias, not other wikis. That's bad.

No data loss or corruption, though.

Change 320320 had a related patch set uploaded (by Ladsgroup):
Fix LinkRendering bug in action=info in repo entity usage

I tried to factor out from SiteLinkView but unfortantely it's in templates and being rendered from there. I though just using Html::element would be much cleaner.

Change 320320 merged by jenkins-bot:
Fix LinkRendering bug in action=info in repo entity usage