[static] also avoid robots getting stuck on history pages
This commit is contained in:
parent
7d6615c298
commit
33e1e20beb
2 changed files with 10 additions and 0 deletions
|
@ -51,6 +51,11 @@ class SourceHistory extends Extension
|
|||
}
|
||||
}
|
||||
|
||||
public function onRobotsBuilding(RobotsBuildingEvent $event)
|
||||
{
|
||||
$event->add_disallow("source_history");
|
||||
}
|
||||
|
||||
public function onImageAdminBlockBuilding(ImageAdminBlockBuildingEvent $event)
|
||||
{
|
||||
$event->add_part("
|
||||
|
|
|
@ -51,6 +51,11 @@ class TagHistory extends Extension
|
|||
}
|
||||
}
|
||||
|
||||
public function onRobotsBuilding(RobotsBuildingEvent $event)
|
||||
{
|
||||
$event->add_disallow("tag_history");
|
||||
}
|
||||
|
||||
public function onImageAdminBlockBuilding(ImageAdminBlockBuildingEvent $event)
|
||||
{
|
||||
$event->add_part("
|
||||
|
|
Reference in a new issue