Page MenuHomePhabricator

Graphs are broken on nowiki
Closed, ResolvedPublic

Description

When viewing a page with a graph (https://no.wikipedia.org/wiki/Mal:Graph:PageViews) the graphs are broken:

{"type":"https://restbase.org/errors/unknown_error","method":"get","uri":"/no.wikipedia.org/v1/page/graph/png/Mal%3AGraph%3APageViews/15791260/74e67443a51eddaf0a766a1ada379b3001878990.png"}

and

{"type":"https://restbase.org/errors/unknown_error","method":"get","uri":"/no.wikipedia.org/v1/page/graph/png/Mal%3AGraph%3APageViews/15791260/a9f3112ad368669c7769caef219412127d21edeb.png"}

But they show up fine when using the preview-function in edit-mode.

Event Timeline

Stigmj created this task.Feb 22 2016, 3:07 PM
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptFeb 22 2016, 3:07 PM
Yurik moved this task from Backlog to Prioritized on the Graphs board.Feb 23 2016, 11:49 AM
Yurik added a subscriber: Yurik.Feb 23 2016, 11:55 AM

Not all graphs are broken - just the pageviews template. The auto-inserted server name is surrounded by the \n into the constructed URL:

per-article/{{trim|
{{#ifeq: {{{3|{{SERVERNAME}}}}} | www.mediawiki.org | mediawiki.org | {{{3|{{SERVERNAME}}}}} }}
}}/all-access

becomes

per-article/\nno.wikipedia.org\n/all-access

In other words the {{trim}} works differently on nowiki.

Yurik closed this task as Resolved.Feb 23 2016, 11:56 AM