John Erling Blad has submitted this change and it was merged. Change subject: (bug 40399) site-link urls will be taken from API result ......................................................................
(bug 40399) site-link urls will be taken from API result This is achieved by some hackery where we overwrite the wb.Site.getUrlTo function to add a filter for all urls we are sure about because we got them via the API. This seems like the easiest way to implement this without refactoring more. Also, it still allows to use wb.Site.getUrlTo() without the API, which should work rather well (at least for MediaWiki sites) now. Change-Id: I23d54b0969073dc0188095b0405d7a78b931e200 --- M repo/resources/wikibase.Site.js M repo/resources/wikibase.ui.PropertyEditTool.EditableSiteLink.js 2 files changed, 34 insertions(+), 0 deletions(-) Approvals: John Erling Blad: Verified; Looks good to me, approved -- To view, visit https://gerrit.wikimedia.org/r/24535 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I23d54b0969073dc0188095b0405d7a78b931e200 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Daniel Werner <[email protected]> Gerrit-Reviewer: Daniel Werner <[email protected]> Gerrit-Reviewer: John Erling Blad <[email protected]> Gerrit-Reviewer: Tobias Gritschacher <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
