Santhosh has uploaded a new change for review.

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

Change subject: Send normalized titles to cxserver
......................................................................

Send normalized titles to cxserver

So that cxserver send canonical URLs to REST API for loading
the page.

Bug: T130580
Change-Id: I5eee8ec5e9ac616fe379c275ec14915e69fffc44
---
M modules/source/ext.cx.source.js
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/modules/source/ext.cx.source.js b/modules/source/ext.cx.source.js
index b297683..32df675 100644
--- a/modules/source/ext.cx.source.js
+++ b/modules/source/ext.cx.source.js
@@ -71,7 +71,7 @@
 
                fetchParams = {
                        $language: this.siteMapper.getWikiDomainCode( language 
),
-                       $title: title
+                       $title: new mw.Title( title ).getPrefixedDb()
                };
                apiURL = '/page/$language/$title';
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5eee8ec5e9ac616fe379c275ec14915e69fffc44
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to