Page MenuHomePhabricator

Newly created links on subpages are rendered with wrong href
Closed, ResolvedPublic1 Estimated Story Points

Description

Tested in Firefox 31.6.0 on English Wikipedia at https://en.wikipedia.org/wiki/User:Mattflaschen_%28WMF%29/Sandbox?veaction=edit:

  1. Blank the surface.
  2. Click link icon.
  3. Paste in File:BetaFeatures-Hovercards-Thumbnail-rtl.svg
  4. Click Insert button
  5. The link in the surface (not the context item) goes to https://en.wikipedia.org/%3AFile%3ABetaFeatures-Hovercards-Thumbnail-rtl.svg .

See T96492: Previewing a link to a File in Flow's VE-mode, opens a broken destination due to /w/

Event Timeline

Mattflaschen-WMF raised the priority of this task from to Needs Triage.
Mattflaschen-WMF updated the task description. (Show Details)
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Catrope renamed this task from Link to file has wrong href to Newly created links on subpages are rendered with wrong href.Apr 21 2015, 3:54 AM
Catrope claimed this task.
Catrope set Security to None.

Change 205521 had a related patch set uploaded (by Catrope):
ce.MWInternalLinkAnnotation: Remove outdated ../ stripping code

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

Change 205521 had a related patch set uploaded (by Catrope):
ce.MWInternalLinkAnnotation: Remove outdated ../ stripping code

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

This addresses the /wiki part being stripped. I filed T96644: Leading colon for file links should not be included in URLs and link captions for the %3A prefix.

Change 205521 merged by jenkins-bot:
ce.MWInternalLinkAnnotation: Remove outdated ../ stripping code

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

Jdforrester-WMF triaged this task as High priority.
Jdforrester-WMF edited a custom field.