Page MenuHomePhabricator

mobile-html: send proper events for .ogg and .svg internal links
Closed, DeclinedPublic

Description

The current .ogg and .svg links have not been handled properly.

In the Barack Obama article, the "listen" link that contains a .ogg file URL and it should be considered as a "media" link, which should send the media_clicked event
https://en.wikipedia.org/api/rest_v1/page/mobile-html/Barack_Obama

In the Family Guy article, the .svg icons on the bottom of the article should be considered as an "image" link, which should send the image_clicked event
https://en.wikipedia.org/api/rest_v1/page/mobile-html/Family_Guy

Event Timeline

Jhernandez subscribed.

We discussed it and it seems very hard with the user generated content to put in special behavior with these two because of how some templates behave or how the HTML is produced.

We discussed that the "open browser with link" is an acceptable behavior for the apps for now, and if it becomes a big usability issue we can figure out something else with communities and maybe marking parsoid HTML specially for certain resources.