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]].
Description
Details
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Fix click interactions on ImageMaps. | mediawiki/services/mobileapps | master | +3 -3 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Dbrant | T227844 Piped wikilinks in imagemaps go to label instead of target | |||
| Resolved | Arlolra | T94793 Support ImageMap extension in Parsoid | |||
| Resolved | cscott | T254181 Run parserTests with Parsoid in extension repos | |||
| Resolved | cscott | T234932 Parsoid srcset is inconsistent with core |
Event Timeline
Parsoid and/or Page Library friends, this is one for you. Not sure these projects currently support imagemaps, so alas we do not either.
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.
Change #1148320 had a related patch set uploaded (by Dbrant; author: Dbrant):
[mediawiki/services/mobileapps@master] Fix click interactions on ImageMaps.
Change #1148320 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Fix click interactions on ImageMaps.