Amire80 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/141379

Change subject: Don't insert source title if there's no target link
......................................................................

Don't insert source title if there's no target link

Bug: 66967
Change-Id: I022a2a333a2c41723a1b1310eb331d05a3f4e50a
---
M modules/tools/ext.cx.tools.link.js
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/79/141379/1

diff --git a/modules/tools/ext.cx.tools.link.js 
b/modules/tools/ext.cx.tools.link.js
index 6ee6f44..e916c54 100644
--- a/modules/tools/ext.cx.tools.link.js
+++ b/modules/tools/ext.cx.tools.link.js
@@ -108,8 +108,7 @@
                                        var title = mw.Title.newFromText( 
page.title );
 
                                        if ( title ) {
-                                               linkPairs[ 
title.getPrefixedDb() ] = page.langlinks && page.langlinks[ 0 ][ '*' ] ||
-                                                       page.title; // 
Redirects will not have langlinks property
+                                               linkPairs[ 
title.getPrefixedDb() ] = page.langlinks && page.langlinks[ 0 ][ '*' ];
                                        }
                                } );
                        }

-- 
To view, visit https://gerrit.wikimedia.org/r/141379
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I022a2a333a2c41723a1b1310eb331d05a3f4e50a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to