Page MenuHomePhabricator

Html output of api should de-urlencode link titles and pagenames for display
Closed, ResolvedPublic


The current result looks like this. While the link works the desired result is that the link text reads "Вікіпедія:Вікі любить пам'ятки/Київ/Шевченківський район (Ч–Я)".

Further more the solution should also be able to deal with the non-wikipedia links such as russian wikivoyage.

Event Timeline

Is it possible instead of de-urlencoding them on output just not urlencode them to begin with when writing to db?

The url encoding is done automatically by pywikibot when requesting Page.permalink(). I guess there is also some sense in keeping the urlencode for those still using antiquated browsers.

Apart from storage the only place where this causes an issue is in the html output.

The decode should be an easy fix and I might use it as a first task for a dev who is starting out on php.

Change 284450 had a related patch set uploaded (by Sebastian Berlin (WMSE)):
api: Decode URL-encoded link text

Change 284450 merged by jenkins-bot:
api: Decode URL-encoded link text

Mentioned in SAL [2016-04-20T13:00:59Z] <JeanFred> Deployed latest from Git, 48bce77 and dfbff9b (T132029)

Resolving this as the last bit in the description is handled in T132647.