Page MenuHomePhabricator

Google searching "translatewiki" fails to put translatewiki main page on first page
Closed, ResolvedPublic

Description

See screenshot below. Was trying to get to translatewiki.net's main page. Instead it suggested an FAQ page and a languages page.

Perhaps there's a setting that can be tweaked to encourage search engines to serve the correct page. Seems undesirable to guide searchers to the back rooms of the website.

If this isn't a priority or isn't actionable, no worries. Just figured I'd mention it in case it's easily fixable.

image.png (1×2 px, 387 KB)

Event Timeline

Mainframe98 subscribed.

This happens because the main page is a special page (Special:TwnMainPage), and MediaWiki automatically emits <meta name="robots" content="noindex,nofollow"> on special pages. Per google's documentation about the robots tag, the robots meta tag instructs search engines not to show the page in search results.

Might be able to fix that by putting $article->getContext()->getOutput()->setRobotPolicy( '' ); somewhere. Maybe with some tweaking since it's a special page instead of an article.

Change 818057 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/TwnMainPage@master] Allow search engine indexing the main page

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

Change 818057 merged by jenkins-bot:

[mediawiki/extensions/TwnMainPage@master] Allow search engine indexing the main page

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