Page MenuHomePhabricator

VisualEditor: only a part of word is linked and <nowiki/> is added
Closed, DeclinedPublic

Description

When I select text that ends in the middle of the word and add a link, only the selected part is linked. Also, <nowiki/> is added after the link.

For example, in https://en.wikipedia.org/w/index.php?title=Ramat_Yohanan&diff=565789129&oldid=553919950 I selected "South Africa" and added the link. I saw an AbuseFilter warning when I was saving, but saved anyway to report the bug :)

Being a seasoned Wikipedian, I expect the whole word to be linked, although now that I think of it, I can imagine that linking a part of the word can be useful, too. So I'm not completely sure whether it's a bug or a feature.

This may be related to Bug 50127, though the description is not the same.


Version: unspecified
Severity: normal

Details

Reference
bz52044

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:47 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz52044.
Amire80 created this task.Jul 25 2013, 6:58 PM

This is not a 'bug', but intentional behaviour.

If you actually want to produce [[Foo]]ian as opposed to [[Foo|Fooian]], VisualEditor/Parsoid doesn't have a way to guarantee that (right now Parsoid creates piped links even when it could do link trails/heads, but this could change in the future), because it's irrelevant to the reader and to editors.

Consequently I'm marking this as "WONTFIX", but see bug 37939 for a wider discussion of the usability issue.

Restricted Application added a subscriber: jeblad. · View Herald TranscriptJun 26 2018, 4:48 PM