Seems like adding sitelink from Wikibase client (aka Wikipedia) is broken - it looks up for wrong current site (for example hewiki thinks it is jawiktionary) and it isn't possible to link to other site.
How to reproduce
- Go to page not connected to item such as: https://he.wikipedia.org/wiki/יעקב_טולידאנו_(קהלת_יעקב)?uselang=en
- Press "add links"
- in the site field fill enwiki - note it will suggest enwiktionary (not enwiki)
root cause
I couldn't determine the exact root cause, but quick debug point to
wikibase.client.linkitem.init.js
and specifically this line: config = require( './config.json' ).currentSite
returns wrong site. (maybe not deterministic - but at least once I saw jawiktionary instead of hewiki)
I'm not sure what "require" points to - and whether this is just site configuration or code issue - so I'm adding all the suspects as tags