Page MenuHomePhabricator

Missing page titles for non-Main namespaces
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

  • open any page in NS-2 "User:" with android app (see attaced screenhot of de:User:Wnme)
  • open any page in NS-4 "Wikipedia:" with android app (see attaced screenshot of en:Wikipedia:Meetup/Berlin)

Screenshot_Android 2022-22-NS-2.jpg (2×1 px, 256 KB)

Screenshot_Android 2022-22-NS-4.jpg (2×1 px, 132 KB)

What happens?:

  • page names are missing on any page in mentioned namespaces
  • pages names are shown when opening any other page in other namespaces

Software version:

  • Android App Version 2.7.50422-r-2022-10-24

I have been seen this issue for some time on different mobile devices. I am surprised that I have not found an existing bug about it.

Event Timeline

@JTannerWMF, do we officially have to support any other namespaces besides Main?

Seems like an issue with the Android App, not Content-Transform-Team. As far as I know, Parsoid generates the same title information for pages in other namespaces (ie, the <title> tag in the parsoid-generated document) and it's up to the app to render that in its skin.

$ php bin/parse.php --pageName User:Cscott --body_only=false < /dev/null | head -2
<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="https://en.wikipedia.org/wiki/Special:Redirect/revision/1121925546"><head prefix="mwr: https://en.wikipedia.org/wiki/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="2989630"/><meta property="mw:pageNamespace" content="2"/><link rel="dc:replaces" resource="mwr:revision/1104947729"/><meta property="mw:revisionSHA1" content="7b664b0a447f49892cd30e82228d7f6b25aea206"/><meta property="dc:modified" content="2022-11-14T22:08:21.000Z"/><meta property="mw:htmlVersion" content="2.6.0"/><meta property="mw:html:version" content="2.6.0"/><link rel="dc:isVersionOf" href="//en.wikipedia.org/wiki/User%3ACscott"/><base href="//en.wikipedia.org/wiki/"/><title>User:cscott</title><link rel="stylesheet" href="//en.wikipedia.org/w/load.php?lang=en&amp;modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles&amp;only=styles&amp;skin=vector"/><meta http-equiv="content-language" content="en"/><meta http-equiv="vary" content="Accept"/></head><body data-parsoid='{"dsr":[0,11654,0,0]}' lang="en" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><span about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"dsr":[0,19,null,null],"pi":[[]]}' data-mw='{"parts":[{"template":{"target":{"wt":"lowercase title","href":"./Template:Lowercase_title"},"params":{},"i":0}}]}'></span><meta property="mw:PageProp/notoc" data-parsoid='{"src":"__NOTOC__","magicSrc":"__NOTOC__","dsr":[19,28,null,null]}'/>

(See <title> tag above.)

Dbrant renamed this task from Missing page names in NS-2, N2-4 Android-App to Missing page titles for non-Main namespaces.Dec 9 2022, 6:30 PM

Seems like an issue with the Android App, not Content-Transform-Team. As far as I know, Parsoid generates the same title information for pages in other namespaces (ie, the <title> tag in the parsoid-generated document) and it's up to the app to render that in its skin.

More precisely it's an issue with feature of the PCS service, which transforms the /page/html output into page/mobile-html. It seems to be explicitly intended to leave out the title on pages outside the Main namespace:
https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/services/mobileapps/+/refs/heads/master/lib/mobile/MobileHTML.js#337

Do we know why this is? Regardless of whether we officially 'support' namespaces outside of Main, would there be any harm in displaying the title at the top of these pages? @JTannerWMF @JMinor

At teh start of the year we will discuss this in a team meeting

Change 879521 had a related patch set uploaded (by Dbrant; author: Dbrant):

[mediawiki/services/mobileapps@master] Show title of pages outside the Main namespace.

https://gerrit.wikimedia.org/r/879521

@JTannerWMF Here are a couple of before-and-after screenshots:

[[Wikipedia:Notability]]

image.png (1×1 px, 133 KB)
image.png (1×1 px, 125 KB)

[[User:HeyDimpz]]

image.png (1×1 px, 30 KB)
image.png (1×1 px, 35 KB)

Change 879521 merged by jenkins-bot:

[mediawiki/services/mobileapps@master] Show title of pages outside the Main namespace.

https://gerrit.wikimedia.org/r/879521