https://bugzilla.wikimedia.org/show_bug.cgi?id=70894
Roan Kattouw <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Roan Kattouw <[email protected]> --- (In reply to ssastry from comment #1) > A quick look at wts.LinkHandler.js reveals that modified links go through > wikilink content escaping which is where this gets tripped up. And > modification detection is based on data-parsoid inspection and comparing > with href, etc. > > So, something is broken in state.env.isValidLinkTarget(linkTarget) function > (used in escapeWikiLinkContentString). This is also broken for links with special characters whose hrefs then get URL-encoded. This leads to the links being normalized to underscore form. $ echo '<a href="../Le_Maillon_faible_%28jeu_t%C3%A9l%C3%A9vis%C3%A9%29" rel="mw:WikiLink" data-parsoid="{"stx":"piped","a":{"href":"../Le_Maillon_faible_(jeu_télévisé)"},"sa":{"href":"Le Maillon faible (jeu télévisé)"},"dsr":[133,184,35,2]}" title="Le Maillon faible (jeu télévisé)">Maillon faible</a>' | node tests/parse.js --html2wt --prefix frwiki [[Le Maillon_faible_(jeu_télévisé)|Maillon faible]] $ echo '<a href="../Le_Maillon_faible_(jeu_télévisé)" rel="mw:WikiLink" data-parsoid="{"stx":"piped","a":{"href":"../Le_Maillon_faible_(jeu_télévisé)"},"sa":{"href":"Le Maillon faible (jeu télévisé)"},"dsr":[133,184,35,2]}" title="Le Maillon faible (jeu télévisé)">Maillon faible</a>' | node tests/parse.js --html2wt --prefix frwiki [[Le Maillon faible (jeu télévisé)|Maillon faible]] -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
