Background
We would like to optimize the way images appear in search engines, allowing for max images when available. It should apply to all skins.
Acceptance criteria
- Add meta tag that allows large images to be shown in Google to all skins
- Remove all traces of the WikimediaEvents max-snippet A/B test code (
Documentation
https://developers.google.com/search/case-studies/large-images-case-study?hl=en
https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#max-image-preview
Developer notes
Add the following code
$out->setRobotsOptions( [ 'max-image-preview' => 'standard' ] );
If all skins:
inside includes/OutputPage.php
If Vector only:
in a suitable hook e.g BeforePageDisplay.
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T310267#8333298 |
