Topic on VisualEditor/Feedback

Sometimes VisualEditor doesn't normalize (e.g. [ [Baba|Baba] ] = [ [Baba] ]) when changed after pasting

7
Summary by Elitre (WMF)
197.218.83.4 (talkcontribs)

Steps to reproduce:

  1. Create a link to a page that doesn't exist, e.g. [[Visual Editor]]
  2. copy the link
  3. Go to the next line
  4. Paste the link
  5. Removing the space on the the label and the link on the second line, e.g. [[VisualEditor|VisualEditor]]
  6. Save the page

Expected:

[[Visual Editor]]

[[VisualEditor]]

Actual:

[[Visual Editor]]

[[VisualEditor|VisualEditor]]

Note: Pasting is essential (or at least one way) to replicate the issue

Similar issue: https://phabricator.wikimedia.org/T153107

197.218.83.4 (talkcontribs)

5.Removeing the space on the the label and the link, on the second line, e.g. [[VisualEditor|VisualEditor]]

Elitre (WMF) (talkcontribs)

Bumping this as I need to verify the reproduction steps!

Elitre (WMF) (talkcontribs)

I think I can't reproduce, on Safari at least (test1, ). Maybe the order in the actions at step 5 matters, or how one copies and pastes... There are several variables we still need to figure out.

197.218.91.167 (talkcontribs)

It is still possible to reproduce. The easiest way to replicate this behavior is to copy an existing link with a pipe trick from a saved page.

Steps to reproduce:

  1. Create an article with a link e.g. "[[webforum|webforen]]" (or open an article, e.g. the one in the task description (https://de.wikipedia.org/w/index.php?title=Posting&oldid=155772035&veaction=edit)
  2. Save the page
  3. Edit the page with VisualEditor
  4. Copy the [[webforum|webforen]] link
  5. Go to the next line
  6. Paste the link
  7. Change the label from its existing reference to the same label (e.g.webforum)
  8. Save the page

Expected: [[webforum]] Actual: [[webforum|webforum]]

It is not even necessary to save the page, the preview already shows this behavior.

197.218.91.167 (talkcontribs)

For future reference see this diff .

Reproduced using Chrome.

Elitre (WMF) (talkcontribs)

You made the magic happen! Thanks to you, anonymous friend, Subbu was able to figure the problem out and we can probably get actual progress on the task!