Page MenuHomePhabricator

Piped wikilinks in imagemaps go to label instead of target
Open, MediumPublic

Description

In the Wikipedia Android App (Version 2.7.50282-r-2019-05-24) if I click on an imagemap link, I will get to the label of that link, not to the target.
Example: If I open https://de.wikipedia.org/wiki/Jessie_(Fernsehserie)#Figuren on the app, and click on the image, I will get to [[Peyton List]], while the imagemap states [[Peyton List (Schauspielerin, 1998)|Peyton List]].

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Charlotte added a subscriber: Charlotte.

Parsoid and/or Page Library friends, this is one for you. Not sure these projects currently support imagemaps, so alas we do not either.

ssastry triaged this task as Medium priority.May 6 2020, 9:52 PM
Arlolra removed projects: Parsoid-Rendering, Parsoid.
Arlolra added a subscriber: Arlolra.

On both,
https://de.wikipedia.org/api/rest_v1/page/html/Jessie_(Fernsehserie)
https://de.wikipedia.org/api/rest_v1/page/mobile-html/Jessie_(Fernsehserie)

poly 1482 502 1316 1048 1496 2700 1808 2720 1906 1642 1847 546 [[Peyton List (Schauspielerin, 1998)|Peyton List]]

ends up as,

<area href="/wiki/Peyton_List_(Schauspielerin,_1998)" shape="poly" coords="95,32,84,67,96,173,116,174,122,105,118,35" alt="Peyton List" title="Peyton List">

(This is also true of the Parsoid native implementation in T94793)

Clicking any of the links in the imagemap in the Android client doesn't really take me anywhere, but that seems like a more general problem than what's described here.

I'm going to remove Parsoid tags since the problem doesn't seem to be in how Parsoid is rendering the imagemap.