jenkins-bot has submitted this change and it was merged.
Change subject: Avoid 301 with recommend tool API
......................................................................
Avoid 301 with recommend tool API
The API URL need to end with /. This also fixes
the CORS issue observed.
Bug: T147835
Change-Id: Ied7e58abaa705db4ab3d5113a4d72070a04396eb
---
M modules/dashboard/ext.cx.recommendtool.client.js
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Nikerabbit: Checked; Looks good to me, approved
jenkins-bot: Verified
Nschaaf: Looks good to me, but someone else must approve
diff --git a/modules/dashboard/ext.cx.recommendtool.client.js
b/modules/dashboard/ext.cx.recommendtool.client.js
index caa8bc1..e0fe815 100644
--- a/modules/dashboard/ext.cx.recommendtool.client.js
+++ b/modules/dashboard/ext.cx.recommendtool.client.js
@@ -72,7 +72,7 @@
// Choose a random algorithm
algorithm = this.algorithms[ Math.floor( Math.random() *
this.algorithms.length ) ];
return this.getSeedPages().then( function ( seedPages ) {
- return $.get( 'https://recommend.wmflabs.org/api', {
+ return $.get( 'https://recommend.wmflabs.org/api/', {
s: self.sourceLanguage,
t: self.targetLanguage,
article: seedPages.join( '|' ),
--
To view, visit https://gerrit.wikimedia.org/r/315227
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ied7e58abaa705db4ab3d5113a4d72070a04396eb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Nschaaf <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits