Page MenuHomePhabricator

Links like "[[:/y/]]" and "[[/y̫/]]" displayed incorrectly in preview
Open, MediumPublicBUG REPORT

Assigned To
Authored By
ToBeFree
Oct 1 2019, 4:26 AM
Referenced Files
F30517084: actual-result.png
Oct 1 2019, 4:33 AM
F30517087: preview-correct.png
Oct 1 2019, 4:33 AM
F30517089: preview-incorrect.png
Oct 1 2019, 4:33 AM
F30517081: source.png
Oct 1 2019, 4:33 AM
F30517048: actual-result.png
Oct 1 2019, 4:26 AM
F30517047: preview-incorrect.png
Oct 1 2019, 4:26 AM
F30517046: preview-correct.png
Oct 1 2019, 4:26 AM
F30517049: source.png
Oct 1 2019, 4:26 AM

Description

https://en.wikipedia.org/w/index.php?title=User:ToBeFree/sandbox&oldid=968133171

Source code:

source.png (191×186 px, 4 KB)

Actual output:

actual-result.png (244×28 px, 1 KB)

Correct preview in the normal source editor:

preview-correct.png (243×29 px, 1 KB)

Incorrect preview in VisualEdit's new source editor:

preview-incorrect.png (221×34 px, 1 KB)

Event Timeline

ToBeFree renamed this task from Links like "[[:/y/]]" displayed incorrectly in preview to Links like "[[:/y/]]" and "[[/y̫/]]" displayed incorrectly in preview.Oct 1 2019, 4:33 AM
ToBeFree updated the task description. (Show Details)
ToBeFree updated the task description. (Show Details)

Parsoid HTML has the same issue: https://en.wikipedia.org/api/rest_v1/page/html/User%3AToBeFree%2Fsandbox/918972167

So the specific examples that are parsed wrong are these two:

[[:/y̫/]]
[[/y̫/]]
LGoto triaged this task as Medium priority.May 1 2020, 4:26 PM

Change #1312595 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/services/parsoid@master] Colon-escaped child link doesn't drop trailing slash

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

Change #1312595 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Colon-escaped child link doesn't drop trailing slash

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

Change #1318304 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.24.0-a17

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

Change #1318304 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.24.0-a17

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

Change #1318746 had a related patch set uploaded (by Arlolra; author: Subramanya Sastry):

[mediawiki/vendor@wmf/1.47.0-wmf.13] Bump wikimedia/parsoid to 0.24.0-a17

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

Change #1318746 merged by jenkins-bot:

[mediawiki/vendor@wmf/1.47.0-wmf.13] Bump wikimedia/parsoid to 0.24.0-a17

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

Mentioned in SAL (#wikimedia-operations) [2026-07-28T20:50:11Z] <arlolra@deploy1003> Started scap sync-world: Backport for [[gerrit:1318746|Bump wikimedia/parsoid to 0.24.0-a17 (T19006 T234299 T360814 T385317 T432477 T433018)]], [[gerrit:1318747|Bump wikimedia/parsoid to 0.24.0-a17 (T433018)]]

Mentioned in SAL (#wikimedia-operations) [2026-07-28T20:52:10Z] <arlolra@deploy1003> arlolra: Backport for [[gerrit:1318746|Bump wikimedia/parsoid to 0.24.0-a17 (T19006 T234299 T360814 T385317 T432477 T433018)]], [[gerrit:1318747|Bump wikimedia/parsoid to 0.24.0-a17 (T433018)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-07-28T20:58:30Z] <arlolra@deploy1003> Finished scap sync-world: Backport for [[gerrit:1318746|Bump wikimedia/parsoid to 0.24.0-a17 (T19006 T234299 T360814 T385317 T432477 T433018)]], [[gerrit:1318747|Bump wikimedia/parsoid to 0.24.0-a17 (T433018)]] (duration: 08m 19s)

Parsoid HTML has the same issue: https://en.wikipedia.org/api/rest_v1/page/html/User%3AToBeFree%2Fsandbox/918972167

So the specific examples that are parsed wrong are these two:

[[:/y̫/]]

This one is now fixed,
https://en.wikipedia.org/w/index.php?title=User:ToBeFree/sandbox&oldid=968133171&useparsoid=0
https://en.wikipedia.org/w/index.php?title=User:ToBeFree/sandbox&oldid=968133171&useparsoid=1

[[&#x2f;y̫&#x2f;]]

It's unclear to me why that one should parse as if it was colon escaped. I'm tempted to leave it as a known difference but maybe others know better