Page MenuHomePhabricator

Pagetitle on main page of Wikimedia Project Sites in mobile version has an unneeded " - " prefix
Open, MediumPublicBUG REPORT

Description

See This link for more details.
Steps to Reproduce: open Wikimedia Project (link Wikipedia, Wikinews, etc), then you can reproduce bug. You must be anonymous and not logged in.

Actual Results:

Expected Results:

Event Timeline

toorich created this task.Oct 19 2020, 12:22 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 19 2020, 12:22 PM
toorich updated the task description. (Show Details)Oct 19 2020, 12:24 PM
Restricted Application added a subscriber: Cosine02. · View Herald TranscriptOct 19 2020, 12:24 PM
Aklapper changed the task status from Open to Stalled.Oct 19 2020, 3:49 PM
Aklapper removed a project: MediaWiki-General.

Hi @toorich, thanks for taking the time to report this! Unfortunately this Wikimedia Phabricator task lacks some information.

If you have time and can still reproduce the situation: Please add a more complete description to this task. That should be

  • a clear and complete list of exact steps to reproduce the situation, step by step, so that nobody needs to guess or interpret how you performed each step,
  • what happens after performing these steps to reproduce,
  • what you expected to happen instead,
  • the web browser(s) and web browser version(s) that you tested.

You can edit the task description by clicking Edit Task. Ideally, a good description should allow any other person to follow these steps (without having to interpret steps) and see the same results. Problems that others can reproduce can get fixed faster. Thanks again!

Hi @toorich, thanks for taking the time to report this! Unfortunately this Wikimedia Phabricator task lacks some information.

If you have time and can still reproduce the situation: Please add a more complete description to this task. That should be

  • a clear and complete list of exact steps to reproduce the situation, step by step, so that nobody needs to guess or interpret how you performed each step,
  • what happens after performing these steps to reproduce,
  • what you expected to happen instead,
  • the web browser(s) and web browser version(s) that you tested.

You can edit the task description by clicking Edit Task. Ideally, a good description should allow any other person to follow these steps (without having to interpret steps) and see the same results. Problems that others can reproduce can get fixed faster. Thanks again!

I think the correct title does not include "-", for example: in Chinese Wikipedia, the correct title is “维基百科,自由的百科全书”

toorich changed the task status from Stalled to Open.Oct 20 2020, 9:22 AM

@toorich: Thanks. In the future, please always follow https://www.mediawiki.org/wiki/How_to_report_a_bug and the structure, to avoid misunderstandings:

Steps to reproduce:

  1. Go to https://zh.wikipedia.org/
  2. See that it has <title>维基百科,自由的百科全书</title>
  3. Go to https://zh.m.wikipedia.org/

Expected outcome:
Mobile site has same title

Actual outcome:
Mobile site has <title> - 维基百科,自由的百科全书</title>

Aklapper renamed this task from Report a bug of mainpage title in mobile version to Mainpage title on zh.wikipedia in mobile version has a " - " prefix.Oct 20 2020, 9:28 AM

https://zh.wikipedia.org/wiki/MediaWiki:Pagetitle is defined as $1 - 维基百科,自由的百科全书.
Wondering if there is some isMainPage() call missing in mobile somewhere. Old T229379 also comes to my mind.

Aklapper renamed this task from Mainpage title on zh.wikipedia in mobile version has a " - " prefix to Pagetitle on main page of zh.wikipedia in mobile version has an unneeded " - " prefix.Oct 20 2020, 9:51 AM
Ammarpad added a subscriber: Ammarpad.

This is not MobileFrontend issue but MinervaNeue's. It can be fixed by setting the HTML title to be MediaWiki:Pagetitle-view-mainpage just as on desktop.

Jdlrobson triaged this task as Low priority.Oct 20 2020, 7:05 PM
Jdlrobson updated the task description. (Show Details)

This bug is not only in Chinese Wikipedia, but in all Wikimedia Project Sites.

In a nutshell: the MediaWiki:Pagetitle-view-mainpage can't work in mobile version.

toorich renamed this task from Pagetitle on main page of zh.wikipedia in mobile version has an unneeded " - " prefix to Pagetitle on main page of Wikimedia Project Sites in mobile version has an unneeded " - " prefix.Oct 22 2020, 2:59 AM

Has been noticed on dewiki as well. As we have deactivated the mobile "Welcome, USERNAME!", the "– Wikipedia" is displayed also for registered users. It seems like this happened only after last Thursday's update. Before then the title read "Wikipedia – Die freie Enzyklopädie". Please fix it, as it looks quite unprofessional!

toorich raised the priority of this task from Low to Needs Triage.Oct 24 2020, 4:00 AM

So the reason of the problem seems from MediaWiki itself.

Aklapper triaged this task as Low priority.Oct 24 2020, 12:48 PM

@toorich: Please do not reset priority for no reason. Thanks!

Jdlrobson raised the priority of this task from Low to Needs Triage.Oct 26 2020, 4:45 PM
Jdlrobson removed a project: patch-welcome.
Jdlrobson added subscribers: ovasileva, Jdlrobson.

What do you think the priority should be @ovasileva ? Does seem to impact all logged in users.

Jdlrobson moved this task from Incoming to Needs Prioritization on the Readers-Web-Backlog board.
toorich added a comment.EditedThu, Nov 5, 5:41 PM

So why does it happened?

@toorich: Don't know yet. You or someone else still need to find out. That's why this task is still open (see upper left corner).

ovasileva triaged this task as Medium priority.EditedFri, Nov 6, 10:51 AM

@toorich - we'll look into it

So why does it happened?

This has been a bug for several years looking at the code, it's just that nobody reported it until now. Fix should hopefully be straightforward.