Page MenuHomePhabricator

Another problem with Parsoid's <base>? Clicking on links in subpages assumes that the links are subpages, too
Closed, ResolvedPublic

Description

Intention:
Click on a link within VisualEditor

Steps to Reproduce:

  1. Open an existing page in a subpage (e.g., User:Example/Sandbox)
  2. Control-click on any [[link]] and copy the link
  3. Paste the link somewhere to see what it says

Actual Results:
Instead of the expected link to en.wikipedia.org/wiki/Link, the user saw links to en.wikipedia.org/wiki/User:Username/Link. When this intermittent problem was happening, then all links on the page would do it. However, it only happened during some editing sessions/some days.

Reproducible: Sometimes

Firefox 26 on Windows 7, Vector skin. Is intermittent there; could not be immediately reproduced in either Firefox or Safari on a Mac.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=48915
https://bugzilla.wikimedia.org/show_bug.cgi?id=58314

Details

Reference
bz59196

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:41 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz59196.

The brilliant "Codename Lisa" has figured out how to reproduce it consistently:

  1. Open a user subpage.
  2. Create a new link to an article on main space, e.g. [[Link]]
  3. Control-click on the link and copy it (or open the link in a new window)
  4. Discover that the link leads to [[User:YOURUSERNAME/Link]].

More interestingly:

  1. Open a user subpage.
  2. Create a new link to an article on main space, e.g. [[Link]].
  3. Control-click on the link and copy it (or open the link in a new window)
  4. Save the page.
  5. Re-enter edit mode.
  6. Control-click on the same link again.
  7. Discover that the link now leads to [[Link]].

Expected result:

In both steps 3 and 6, the article must open at [[Link]], not at [[User:Username/Link]].

Actual result:

In step 3, a subpage with the same {{SUBPAGENAME}} as the link name opens. Step 6 is always successful. Pre-existing links open correctly.

  • This bug has been marked as a duplicate of bug 58314 ***

Change 119914 had a related patch set uploaded by Catrope:
Hack around Parsoid's href prefixing in rendering new links

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

  • This bug has been marked as a duplicate of bug 58314 ***