Page MenuHomePhabricator

MediaWiki:Pagetitle not obeyed on English Wikivoyage when pagebanner present
Closed, ResolvedPublic

Description

English Wikivoyage pages with the pagebanner extension enabled are not setting the HTML <title> tag correctly. See for example https://en.wikivoyage.org/wiki/Yosemite_National_Park - the title should be "Yosemite National Park – Travel guide at Wikivoyage", but it is just "Yosemite National Park".

The MediaWiki:Pagetitle value is "$1 – Travel guide at {{SITENAME}}" - https://en.wikivoyage.org/wiki/MediaWiki:Pagetitle.

Mainspace pages without page banners have their title tags set correctly - see https://en.wikivoyage.org/wiki/Previous_Featured_travel_topics which has a title of "Previous Featured travel topics – Travel guide at Wikivoyage".

This bug has serious SEO implications, so any attention would be much appreciated.

Event Timeline

Wrh2 raised the priority of this task from to High.
Wrh2 updated the task description. (Show Details)
Wrh2 added a project: Wikidata-Page-Banner.
Wrh2 added a subscriber: Wrh2.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Wrh2 added a subscriber: Jdlrobson.

Change 236250 had a related patch set uploaded (by Sumit):
WPB title should use Mediawiki:Pagetitle

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

@Wrh2, thanks for reporting, I've added a patch. Would be fixed soon.

Thanks for the quick response & patch!

Change 236250 merged by jenkins-bot:
WPB title should use Mediawiki:Pagetitle

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

Jdlrobson claimed this task.

Confirmed fixed on beta labs (note cached pages will still exhibit problem)

Fix should roll out to Wikivoyage Wednesday.

The fix seems to be working on Wikivoyage, this issue can be closed.