Page MenuHomePhabricator

Content Translation: cannot select an existing target article; section translation is published to a redirect instead of the main article (target language: Russian).
Open, MediumPublic2 Estimated Story PointsBUG REPORT

Description

When translating a section of an already existing article into Russian using the Content Translation tool, it is impossible to select the existing target article. As a result, the translated content is published to a redirect page rather than to the main article the redirect points to.

Steps to replicate the issue (include links if applicable):

  • Open the Content Translation tool.
  • Select a source article.
  • Choose section translation mode.
  • Start translating the selected section.
  • Publish the translation.

What happens?:
The translated section is published to a redirect page instead of the main article.

What should have happened instead?:
The translated section is published to the main article.

Other information (browser name/version, screenshots, etc.):

Event Timeline

Nikerabbit triaged this task as Medium priority.Jan 8 2026, 8:13 AM
Nikerabbit moved this task from Needs Triage to Drafts and publishing on the ContentTranslation board.

Change #1224772 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/services/cxserver@master] suggestTargetTitle: Check for existing target sitelink before Wikidata

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

Change #1224774 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/services/cxserver@master] suggestTargetTitle: Check for existing target sitelink before Wikidata

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

Change #1224772 abandoned by Nik Gkountas:

[mediawiki/services/cxserver@master] suggestTargetTitle: Check for existing target sitelink before Wikidata

Reason:

Duplicate of Ifa4abc1af196d4739e6c5b54a1eb0c9bfa911a6e

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

I was able to reproduce the above issue with the following steps:

  1. Go to CX on ru wiki
  2. With "en" as source language and "ru" as target language, search and select this article: "Elizaveta Malakhova". The page exists in both languages.
  3. Select a section to translate and proceed to the desktop editor.

As can be seen at the top of the target column, the target page title that is used is "Соловьёва, Елизавета Хикметовна", which is a redirect to the "Малахова, Елизавета Хикметовна" article that would be the valid target title.

The error is caused by two issues happening together:

  1. The link to the desktop editor inside CX unified dashboard doesn't contain the target title URL parameter, which is already available there.
  2. CXServer doesn't "suggest" the actual target language link (even if it's available), but it returns the Wikidata label in that language as a target title suggestion.

Screenshot:

Screenshot 2026-01-08 at 20.13.58.png (966×1 px, 170 KB)

ngkountas set the point value for this task to 2.

Change #1224774 merged by jenkins-bot:

[mediawiki/services/cxserver@master] suggestTargetTitle: Check for existing target sitelink before Wikidata

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

The second issue mentioned in the comment above ("The link to the desktop editor inside CX unified dashboard doesn't include the target title URL parameter") is fixed in this patch. The task ("Bug") linked in the patch is wrong, and this task should be linked instead.

Change #1225595 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20260112

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

Change #1225595 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20260112

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

Change #1225807 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/deployment-charts@master] Update cxserver to 2026-01-09-231405-production

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

Change #1225807 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2026-01-09-231405-production

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

Change #1226863 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] Desktop redirect: Check section suggestion before using target title

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

Change #1226863 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Desktop redirect: Check section suggestion before using target title

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

Change #1226936 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20260114

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

Change #1226936 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20260114

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

Change #1226976 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@wmf/1.46.0-wmf.11] CX3 Build 1.0.0+20260114

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

Change #1226976 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@wmf/1.46.0-wmf.11] CX3 Build 1.0.0+20260114

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

Mentioned in SAL (#wikimedia-operations) [2026-01-15T14:39:24Z] <sbisson@deploy2002> Started scap sync-world: Backport for [[gerrit:1226976|CX3 Build 1.0.0+20260114 (T413646)]], [[gerrit:1226977|Fallback to source title if target title is not provided by cxserver (T414558)]]

Mentioned in SAL (#wikimedia-operations) [2026-01-15T14:41:31Z] <sbisson@deploy2002> sbisson: Backport for [[gerrit:1226976|CX3 Build 1.0.0+20260114 (T413646)]], [[gerrit:1226977|Fallback to source title if target title is not provided by cxserver (T414558)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-01-15T14:47:31Z] <sbisson@deploy2002> Finished scap sync-world: Backport for [[gerrit:1226976|CX3 Build 1.0.0+20260114 (T413646)]], [[gerrit:1226977|Fallback to source title if target title is not provided by cxserver (T414558)]] (duration: 08m 07s)

@Lvova Would you be able to test this out again and let us know your results? Thanks!

Ok sounds good, I will move this to Sign-off. Thanks for validating!