Page MenuHomePhabricator

Previews of citations generated by templates in subpages give incorrect internal redlinks
Closed, ResolvedPublic1 Estimated Story Points

Description

E.g. https://en.wikipedia.org/wiki/User:Quiddity_(WMF)/sandbox?oldid=788890181&veaction=edit
Shows

Selection_055.png (888×787 px, 121 KB)

(redlinks in Firefox, bluelinks in Chrome, but both point to the same non-existent page)

Event Timeline

Deskana moved this task from To Triage to TR1: Releases on the VisualEditor board.
matmarex renamed this task from Citation previews in subpages give incorrect internal redlinks to Previews of citations generated by templates in subpages give incorrect internal redlinks.Sep 6 2017, 12:57 PM

The root cause is T175157: Copy-paste of template-generated link from a subpage in VE gives the wrong href, because apparently these previews use the same rendering mode as rendering for clipboard (for copy-paste). I think that's wrong, but changing it causes more issues. I'm adding a note about this in https://gerrit.wikimedia.org/r/376262.

Change 376507 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] Do not "resolve attributes" in toDomElements() overrides

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

Change 376507 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Do not "resolve attributes" in toDomElements() overrides

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

@Deskana This should also be resolved with the fix for T175157.

Deskana set the point value for this task to 1.

@Deskana This should also be resolved with the fix for T175157.

Excellent! Thanks. :-)