Page MenuHomePhabricator

Mark red links
Closed, DuplicatePublic


The app replaces red links with spans.

At a minimum we still need to be able to detect red links on the app side, so the app doesn't try to go to the page (or the link preview).
(We would also like to run this transformation on the Mobile Content Service instead of the clients.)

The problem is that there doesn't seem to be a way to detect red links with Parsoid output.

Red link example from Parsoid output of

<a rel="mw:WikiLink" href="./2nd_millennium" title="2nd millennium">2nd<span typeof="mw:Entity"> </span>millennium</a>

Same link with mobileview[1]:

<a href=\"/w/index.php?title=2nd_millennium&amp;action=edit&amp;redlink=1\" class=\"new\" title=\"2nd millennium (page does not exist)\">2nd&#160;millennium</a>

The app looks for class new to detect red links.


Event Timeline

bearND claimed this task.
bearND raised the priority of this task from to Needs Triage.
bearND updated the task description. (Show Details)
bearND added subscribers: Aklapper, bearND.
Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptNov 3 2015, 6:08 PM
Krenair added a subscriber: Krenair.Nov 3 2015, 6:13 PM
Rdicerb removed a subscriber: Rdicerb.