Last modified: 2013-07-03 12:13:58 UTC
When adding a sitelink, it should be impossible to add a second site link to the same site (or: to the same language in the same group). Currently, the UI does not prevent this, and saving fails silently (the link appears to be added until the page is reloaded). This problem exists even if there is only one site group. The issue here is twofold: a) the UI should prevent multiple sitelinks to the same site (this constraint can be enforced regardless of site groups) b) the API should respond with an error when trying to set a site link to a site that is already covered.
Correction: when adding a second link to the same site, the new links will replace the old link. Upon reloading the page, one the newly set link wfor that site will remain. The API is behaving correctly: the wbsetsitelink module is defined to replace any existing links to the given site. It's the responsibility of the UI to prevent sitelinks being replaced that way.
https://gerrit.wikimedia.org/r/#/c/70988/