Page MenuHomePhabricator

LinkCache sends API requests for URL-encoded page names, gets "invalid" responses back when descending into template contents
Closed, ResolvedPublic

Description

Observed this happening for dozens of links on https://en.wikipedia.org/wiki/Barack_Obama

Minimal test case: create a page with [["Foo bar"]] {{echo|[["Bar baz"]]}}. Load the page in VE while watching the network tab in the web inspector, filtering for XHR requests. Observe an API request is sent for %22Bar_baz%22 but not for %22Foo_bar%22 or "Foo_bar" or anything else.

Event Timeline

Catrope raised the priority of this task from to Needs Triage.
Catrope updated the task description. (Show Details)
Catrope added a project: VisualEditor.
Catrope changed Security from none to None.
Catrope subscribed.

Change 176857 had a related patch set uploaded (by Alex Monk):
Handle encoding of links in transclusion nodes properly when determining existence

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

Patch-For-Review

Change 176857 merged by jenkins-bot:
Handle encoding of links in transclusion nodes properly when determining existence

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