⚓ T395002 Template URL double encoding
Page Menu
Phabricator
Create Task
Maniphest
T395002
Template URL double encoding
Closed, Resolved
Public
2 Estimated Story Points
BUG REPORT
Actions
Edit Task
Edit Related Tasks...
Create Subtask
Edit Parent Tasks
Edit Subtasks
Merge Duplicates In
Close As Duplicate
Edit Related Objects...
Edit Commits
Edit Mocks
Mute Notifications
Protect as security issue
Assigned To
hueitan
Authored By
ihurbain
May 22 2025, 9:18 AM
2025-05-22 09:18:36 (UTC+0)
Tags
ContentTranslation
(Content handling)
LPL Essential (LPL Essential 2025 Apr-Jun: CX)
(Done)
MW-1.45-notes (1.45.0-wmf.4; 2025-06-03)
Referenced Files
F61776046: image.png
Jun 6 2025, 9:16 AM
2025-06-06 09:16:48 (UTC+0)
F60373559: image.png
May 22 2025, 9:18 AM
2025-05-22 09:18:36 (UTC+0)
Subscribers
abi_
Aklapper
hueitan
ihurbain
Description
Steps to replicate the issue
(include links if applicable):
Open a ContentTranslation page on fr.wikipedia.org. Find content generated by a template. Click on it.
What happens?
The side bar shows the template that generates the content with a link.
The link is broken because its href is double-encoded (in this case to
What should have happened instead?
The URL should not be double encoded. Additionally, the namespace for the model should probably match the localized namespace for the destination wiki (Modèle:Chem2 does not work on enwiki).
Details
Related Changes in Gerrit:
Subject
Repo
Branch
Lines +/-
CX: Fix URL decoding for titles for transclusion node
mediawiki/extensions/ContentTranslation
master
+13
-9
Customize query in gerrit
Event Timeline
ihurbain
created this task.
May 22 2025, 9:18 AM
2025-05-22 09:18:36 (UTC+0)
Restricted Application
added a subscriber:
Aklapper
View Herald Transcript
May 22 2025, 9:18 AM
2025-05-22 09:18:36 (UTC+0)
hueitan
claimed this task.
May 26 2025, 8:46 AM
2025-05-26 08:46:46 (UTC+0)
hueitan
subscribed.
Comment Actions
@ihurbain
, could you please provide the
specific article
you were translating and the
language pair
(from/to) when you encountered this double-encoding issue with the template URL?
hueitan
removed
hueitan
as the assignee of this task.
May 26 2025, 8:46 AM
2025-05-26 08:46:58 (UTC+0)
ihurbain
added a comment.
May 26 2025, 9:00 AM
2025-05-26 09:00:36 (UTC+0)
Comment Actions
For sure I have seen that on the translation of Calcium Lactate from English to French; the issue is also present on
(again, English to French) - click on the molecule name in the first paragraph of the original content for a repro.
hueitan
added a comment.
May 26 2025, 9:14 AM
2025-05-26 09:14:23 (UTC+0)
Comment Actions
Thanks, i can reproduce it.
gerritbot
added a comment.
May 26 2025, 9:34 AM
2025-05-26 09:34:08 (UTC+0)
Comment Actions
Change #1150600 had a related patch set uploaded (by Huei Tan; author: Huei Tan):
[mediawiki/extensions/ContentTranslation@master] CX: Fix URL decoding for titles for transclusion node
gerritbot
added a project:
Patch-For-Review
May 26 2025, 9:34 AM
2025-05-26 09:34:09 (UTC+0)
hueitan
claimed this task.
May 26 2025, 9:34 AM
2025-05-26 09:34:21 (UTC+0)
hueitan
moved this task from
Needs Triage
to
Content handling
on the
ContentTranslation
board.
hueitan
added a project:
LPL Essential (LPL Essential 2025 Apr-Jun: CX)
hueitan
moved this task from
Backlog
to
In Progress
on the
LPL Essential (LPL Essential 2025 Apr-Jun: CX)
board.
abi_
triaged this task as
Medium
priority.
May 26 2025, 4:00 PM
2025-05-26 16:00:50 (UTC+0)
abi_
set the point value for this task to
gerritbot
added a comment.
Jun 2 2025, 12:07 PM
2025-06-02 12:07:14 (UTC+0)
Comment Actions
Change #1150600
merged
by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] CX: Fix URL decoding for titles for transclusion node
Maintenance_bot
removed a project:
Patch-For-Review
Jun 2 2025, 12:31 PM
2025-06-02 12:31:54 (UTC+0)
ReleaseTaggerBot
added a project:
MW-1.45-notes (1.45.0-wmf.4; 2025-06-03)
Jun 2 2025, 1:00 PM
2025-06-02 13:00:37 (UTC+0)
hueitan
moved this task from
In Progress
to
Need QA
on the
LPL Essential (LPL Essential 2025 Apr-Jun: CX)
board.
Jun 3 2025, 7:19 AM
2025-06-03 07:19:22 (UTC+0)
hueitan
moved this task from
Need QA
to
Pending Deployment
on the
LPL Essential (LPL Essential 2025 Apr-Jun: CX)
board.
Jun 3 2025, 8:41 AM
2025-06-03 08:41:48 (UTC+0)
abi_
moved this task from
Pending Deployment
to
Done
on the
LPL Essential (LPL Essential 2025 Apr-Jun: CX)
board.
Jun 6 2025, 9:16 AM
2025-06-06 09:16:48 (UTC+0)
abi_
subscribed.
Comment Actions
Appears to be fixed. Tested on
PWaigi-WMF
closed this task as
Resolved
Jun 12 2025, 7:57 AM
2025-06-12 07:57:08 (UTC+0)
Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct.
Wikimedia Foundation
Code of Conduct
Disclaimer
CC-BY-SA
GPL
Credits