Last modified: 2014-07-22 14:33:55 UTC
If a target link doesn't exist, the source link may be inserted incorrectly. This can be fixed by removing `|| page.title` in ext.cx.tools.link.js line 112, because if there's no page.langlinks[ 0 ][ '*' ], then there's probably no target link to insert, but then the problem is that redirects are not handled correctly: linkPairs is indexed by the real target article, while the adaptations parameter in apply() is looked up by the href, which is the name of the redirect.
Change 141379 had a related patch set uploaded by Amire80: Don't insert source title if there's no target link https://gerrit.wikimedia.org/r/141379
Change 141379 abandoned by Amire80: Don't insert source title if there's no target link Reason: the meaningful part was merged in another patch. https://gerrit.wikimedia.org/r/141379
Patch: https://gerrit.wikimedia.org/r/#/c/146802/
https://gerrit.wikimedia.org/r/#/c/146802/ merged