Last modified: 2014-09-02 12:27:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72286, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70286 - VisualEditor: Adding a link right before a wikilinked word leads to unexpected results, including a nowiki
VisualEditor: Adding a link right before a wikilinked word leads to unexpecte...
Status: NEW
Product: VisualEditor
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-02 12:27 UTC by Elitre
Modified: 2014-09-02 12:27 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Elitre 2014-09-02 12:27:52 UTC
This can be seen by placing the cursor right at the beginning of any existing wikilinked word, then trying to add any kind of link. 
User's expectation is that this changes the wikilink target with no corruption.

<<To reproduce this:
* [https://fr.wikipedia.org/w/index.php?title=Boys_band&veaction=edit Edit Boys band on frwiki]
* In the history chapter, 4th paragraph, put the cursor before the S of the link to Super Junior
* Click on link icon in the toolbar
* Copy the URL <code><nowiki>https://fr.wikipedia.org/wiki/B.A.P</nowiki></code> in the link inspector and click Terminé
* When previewing modifications, you can see that it has been replaced by <code><nowiki>[[B.A.P]] [[Super Junior|<nowiki/>]][[B.A.P|Super]] Junior</nowiki></code> which shows several problems: there's a link without text displayed, the existing link has been cut in two
* And also, what is displayed in VE doesn't match at all what the result will be when saved:
** "Super" is displayed as an external link, but in the modifications preview, you see it's an internal link
** If you hover over "Super", both "Super" and "Junior" get underlined, but in the modifications preview, "Junior" is not inside the link
** "Junior" is displayed as an internal link, but in the modifications preview, you see it's now just text
** If you hover over "Junior", both "Super" and "Junior" get underlined, but in the modifications preview, "Junior" is not inside a link .>> Instructions by NicoV.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links