Page MenuHomePhabricator

VisualEditor doesn't colon-prefix interwiki links when needed, causing them to become language links
Closed, DuplicatePublic


Go to a Flow topic on, click reply and try to create a link to "en:Wikipedia:Indentation". VisualEditor will show a working link, but when the comment is saved, the link disappear, because it is an interwiki link, and the user should prefix it with ":" in order to make it visible.


Event Timeline

He7d3r created this task.Jun 4 2015, 3:48 PM
He7d3r raised the priority of this task from to Needs Triage.
He7d3r updated the task description. (Show Details)
He7d3r added a subscriber: He7d3r.
Restricted Application added a project: Collaboration-Team-Triage. · View Herald TranscriptJun 4 2015, 3:48 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Catrope added a subscriber: Catrope.Jun 4 2015, 4:38 PM

Is this a bug in VisualEditor, perhaps? Or in Parsoid? Does it happen when editing article pages with VE?

He7d3r added a comment.EditedJun 4 2015, 5:47 PM

I can't really test, because I'm getting

TypeError: $$dialog is undefined load.php:4:588
"Exception in store-localstorage-update:" load.php:177:555
"NS_ERROR_DOM_QUOTA_REACHED: Persistent storage maximum size reached" DOMException >[NS_ERROR_DOM_QUOTA_REACHED: "Persistent storage maximum size reached"
code: 1014
nsresult: 0x805303f6

when I access
using Firefox 38 on linux.

TypeError: $$dialog is undefined load.php:4:588

Ouch, that sounds like a local script / user script / Gadget error. It doesn't happen for me; maybe you could try logged-out or using incognito?

He7d3r added a comment.EditedJun 4 2015, 6:00 PM

Apparently, that comes from

because VisualEditor works again if I disable the beta feature on

However, I was able to reproduce the problem reported here, i.e., I saw a working link when I added "en:Test" to my page:
As soon as I saved the page, the link disappears (as expected), so VisualEditor is not being good at showing how the page will look like after the edit is saved.

Catrope renamed this task from Flow preview doesn't show that interwiki links will disappear if saved without a ":" prefix to VisualEditor doesn't colon-prefix interwiki links when needed, causing them to become language links.Jun 4 2015, 8:20 PM shows that this only happens when you try to make an internal link to de:Foo. If you make an external link to instead, VE correctly produces a link to :de:Foo.