Page MenuHomePhabricator

The visual editor broke a link while apparently trying to normalize it
Closed, ResolvedPublicBUG REPORT

Description

See https://office.wikimedia.org/w/index.php?diff=prev&oldid=339513

I don't think I even clicked on the lines that were changed. One of them was obviously broken, and the other was just fiddled with unnecessarily. The broken one changed:

* [[w:en:Wikipedia:Village pump (policy)]]

into

* [w:en:Wikipedia:Village pump (policy) w:en:Wikipedia:Village pump (policy)]

Event Timeline

Arlolra triaged this task as Medium priority.
Arlolra moved this task from Needs Triage to Bugs & Crashers on the Parsoid board.
Arlolra subscribed.

It looks like the question mark is forcing this as an extlink,

> echo "[[w:en:Wikipedia:Village pump (policy)/Archive 183#Request for Comment: Should editing on Wikipedia be limited to accounts only?]]" | php bin/parse.php --wt2wt --domain www.mediawiki.org
[w:en:Wikipedia:Village pump (policy)/Archive 183#Request for Comment: Should editing on Wikipedia be limited to accounts only? w:en:Wikipedia:Village pump (policy)/Archive 183#Request for Comment: Should editing on Wikipedia be limited to accounts only?]

> echo "[[w:en:Wikipedia:Village pump (policy)/Archive 183#Request for Comment: Should editing on Wikipedia be limited to accounts only]]" | php bin/parse.php --wt2wt --domain www.mediawiki.org 
[[w:en:Wikipedia:Village pump (policy)/Archive 183#Request for Comment: Should editing on Wikipedia be limited to accounts only]]

Probably just needs to recognize that it's in the fragment.

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

[mediawiki/services/parsoid@master] [WIP] Strip fragment when checking for ? when serializing interwiki target

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

Change 961244 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Strip fragment when checking for ? when serializing interwiki target

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

Change 962706 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.18.0-a26

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

Change 962706 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.18.0-a26

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