mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Don't index VE edit pages
Bug: T319124
Change-Id: Ia738698e93252f884b9045aab5840465d3f0d3d3
(cherry picked from commit b368d741a1
)
This commit is contained in:
parent
1f62ae569b
commit
f4c32ab7b8
|
@ -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