mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 14:06:52 +00:00
Don't index VE edit pages
Bug: T319124 Change-Id: Ia738698e93252f884b9045aab5840465d3f0d3d3
This commit is contained in:
parent
982cbe31ea
commit
b368d741a1
|
@ -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' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue