When trying to add interwiki links to a page on Wiktionary, it tries to match with Wikisource pages. Also when tried the same on Wikisource, wikipedia links show up.
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__
1. Go to page not connected to item such as: https://he.wikipedia.org/wiki/יעקב_טולידאנו_(קהלת_יעקב)?uselang=en
2. Press "add links"
3. in the site field fill enwiki - note it will suggest enwiktionary (not enwiki)
I couldn't determine the exact root cause, but quick debug point to
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
Tried this on Wiktionary:Images. You could test it there with Vikisözlük:Resimler on Turkish Wiktionary.