Page MenuHomePhabricator

Minerva Skin/MobileFrontEnd causing issues with Google SERPS
Closed, DuplicatePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Switch to the Minerva Skin
  • Submit article to Google Search Console for indexing
  • See Issue with title

What happens?: Titles for the main page of a wiki become visible on Google as " — Wiki Name", with nothing preceding the dash. This looks pretty silly, and makes wikis look less reputable than they are.

What should have happened instead?: Simply, the site name should show such as "Wiki Name"

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.: MediaWiki 1.37. Basically, what happens is I believe that the value passed to "pagetitle" is the message stored at MediaWiki:Mobile-frontend-logged-in-homepage-notification, which happens to be "Welcome, $1" if this is left unchanged. Now, when Google crawls the page using Googlebot, it doesn't pull "Welcome, Googlebot" or anything like that, it just pulls a blank string.

This causes issues when the page is indexed as Google will index the page as " — Wiki Name" as it doesn't understand "Welcome, {{1}}" therefore just blanks it out. Of course, this can be changed by editing MediaWiki:Mobile-frontend-logged-in-homepage-notification, but there should be an option to just have the sitename display instead. I think this should be done by default too, as it causes a lot of issues for those who don't know what said MediaWiki message is causing the issue.

Screenshot 2022-04-02 at 00.39.31.png (302×1 px, 59 KB)

As you can see from the image, it looks very odd. One could perhaps replace the message at Mobile-frontend-logged-in-homepage-notificaiton with their sitename, but this would look silly "Test Wiki - Test Wiki".

The Timeless skin handles this perfectly, and displays just "SITENAME" on the main page — this is how Minerva should do it too,

Event Timeline

Actually, it makes no difference if you change MediaWiki:Mobile-frontend-logged-in-homepage-notification as Google indexes the site without being logged in so will always see " — Sitename" unless you change MediaWiki:Pagetitle which will obviously have a negative effect on other article page titles.

This seems like a very big oversight, unless there is something I'm missing and actually is a way to change how that appears for Minerva?

What MediaWiki version are you using? This sounds like T265892 which was fixed in 1.38.

What MediaWiki version are you using? This sounds like T265892 which was fixed in 1.38.

Using 1.37 — does seem to be the same issue, seems like it's solved then in 1.38! Thank you!

Great! Thanks for the quick reply.