Don't index VE edit pages

Bug: T319124
Change-Id: Ia738698e93252f884b9045aab5840465d3f0d3d3
(cherry picked from commit b368d741a1)
This commit is contained in:
Bartosz Dziewoński 2022-12-01 22:26:45 +01:00 committed by Alistair3149
parent 1f62ae569b
commit f4c32ab7b8

View file

@ -116,6 +116,11 @@ class Hooks {
'wgEditSubmitButtonLabelPublish',
$veConfig->get( 'EditSubmitButtonLabelPublish' )
);
// Don't index VE edit pages (T319124)
if ( $output->getRequest()->getVal( 'veaction' ) ) {
$output->setRobotPolicy( 'noindex,nofollow' );
}
}
/**