Page MenuHomePhabricator

Unable to preview user page on mobile
Closed, ResolvedPublicBUG REPORT

Description

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

  • access the mobile version of a wiki (for example: https://ko.m.wikipedia.org)
  • create your user page
  • click the blue icon at the top to preview the result

What happens?:
Unable to see the result. A "you don't have a user page" message appears.

What should have happened instead?:
The result of the wiki-code added to the page should appear.

Event Timeline

TheresNoTime subscribed.

Replicated on https://ko.m.wikipedia.org for the source editor only — the visual editor doesn't show a preview, but will correctly show the diff

JtXFmQq6sP.gif (811×414 px, 295 KB)

Looks like MobileFrontend uses the onOutputPageBeforeHTML hook to completely override the contents of a if it's an uncreated user page. This presumably needs to be updated so it doesn't do this in the parse API.

@DLynch I agree with your assessment here. Likely a long term bug we have never noticed.

@Jdlrobson It does require a very specific and uncommon action to notice it, certainly. :D

Looks like the simplest way to fix this would be to use the onBeforeDisplayNoArticleText hook instead. That's what we used in DiscussionTools for a similar message shown on talk pages, and (I just checked) it doesn't suffer from this issue.

Change 818180 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/MobileFrontend@master] Use 'BeforeDisplayNoArticleText' hook for message on missing user pages

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

Esanders added a project: Editing QA.
Esanders moved this task from Inbox to Low Priority on the Editing QA board.

Change 818180 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Use 'BeforeDisplayNoArticleText' hook for message on missing user pages

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

EAkinloose subscribed.

✅ The result of the wiki-code added to the page should appear

Screenshot 2022-08-09 at 15.21.25.png (846×388 px, 43 KB)