Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/224853
Change subject: Fix: Redlink in link card opens CX with incorrect source page ...................................................................... Fix: Redlink in link card opens CX with incorrect source page Testplan: Create a red link and clik on the link in the link tool card. CX should open with source article as the text of the redlink Bug: T105915 Change-Id: Ic4b30d5d0cfaae37ae9c30c0ae3f29b536b74680 --- M modules/tools/ext.cx.tools.link.js 1 file changed, 5 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/53/224853/1 diff --git a/modules/tools/ext.cx.tools.link.js b/modules/tools/ext.cx.tools.link.js index 8629bfd..68339d0 100644 --- a/modules/tools/ext.cx.tools.link.js +++ b/modules/tools/ext.cx.tools.link.js @@ -417,7 +417,11 @@ target: '_blank', title: mw.msg( 'cx-tools-missing-link-tooltip' ), href: new mw.Uri().extend( { - targettitle: this.getTitle() + targettitle: this.getTitle(), + // This is a non existing link and we cannot guess what can be the source, + // So using the same link text for now. + page: this.getTitle(), + draft: null } ).toString() } ); -- To view, visit https://gerrit.wikimedia.org/r/224853 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic4b30d5d0cfaae37ae9c30c0ae3f29b536b74680 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits