Page MenuHomePhabricator

Interwiki links from images don't open in the android app
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Create a page with a File that links to an interwiki page, for example [[File:Fairychapeltoun.JPG|link=wikiquote:Fairies]], or go to a test page
  • Try clicking the image in the android app

What happens?:
The link doesn't open, instead it says the page doesn't exist.

What should have happened instead?:
It should open the correct wiki page in the app or open it in an external browser, like happens when using regular links ([[wikiquote:Fairies]]), or when using non "interwiki" links in images.

Software version (skip for WMF-hosted wikis like Wikipedia):
Android app 2.7.50442-beta-2023-05-08

Other information (browser name/version, screenshots, etc.):

interwiki_failes_full.jpeg (2×999 px, 102 KB)

Android 13, Google pixel 6a

Event Timeline

Dbrant edited projects, added Content-Transform-Team; removed Mobile.
Dbrant subscribed.

This looks like a question for Content Transform and/or Parsoid.
If we look at the test page as rendered by Parsoid, we see that the link to Wikiquote was stripped away and replaced by a "relative" link in the form of ./wikiquote:Fairies
https://he.wikipedia.org/api/rest_v1/page/html/%D7%9E%D7%A9%D7%AA%D7%9E%D7%A9:%D7%A0%D7%99%D7%A7%D7%95%D7%9C%D7%A1_%D7%A4%D7%9C%D7%9E%D7%9C%2Ftest_file_links

Compare this with mobile web, where the link is the fully-qualified link to Wikiquote:
https://he.m.wikipedia.org/wiki/%D7%9E%D7%A9%D7%AA%D7%9E%D7%A9:%D7%A0%D7%99%D7%A7%D7%95%D7%9C%D7%A1_%D7%A4%D7%9C%D7%9E%D7%9C/test_file_links

Yeah, this looks like a Parsoid bug: T182649 as @Arlolra linked above.