As a Wikipedia editor, when I click a Wikidata Bridge edit link whose target item is a redirect, I want… what to happen?
We currently don’t handle redirected items very well: since the response contains a different entity ID (the redirect target) than we expected, we’ll throw an error “Result does not contain relevant entity.”
https://wikidata.beta.wmflabs.org/wiki/Talk:Q368240 is one example case, though the Bridge doesn’t seem to auto-load for some reason (I ran mw.loader.using( 'wikibase.client.data-bridge.init' ) in the console to overcome this).
- Is this something we need to handle at all? I would assume that if a client wiki has an edit link for some statement, then it has read the statement from the target entity, and it can’t be a redirect. (Unless it was just merged and the edit hasn’t been dispatched yet, I guess.) But I don’t know how the Lua code handles redirects – maybe it’s possible that you read Item A → Property X → Item B → Property Y → Value C, where Item B is a redirect to Item B' but Item A was not updated and still points to Item B, and you add an edit link for Item B’s Value C statement, because you never even noticed that the statement really came from Item B'.