diff --git a/frontend/widgets/Seo.php b/frontend/widgets/Seo.php index fee892b..833cd3d 100755 --- a/frontend/widgets/Seo.php +++ b/frontend/widgets/Seo.php @@ -10,6 +10,7 @@ use yii\helpers\ArrayHelper; use yii\helpers\Html; use yii\helpers\Url; + use yii\helpers\VarDumper; use yii\web\HttpException; class Seo extends Widget @@ -232,6 +233,15 @@ 'content' => 'noindex,nofollow', ] ); + } else if (isset($filter) && count($filter, COUNT_RECURSIVE) >= 4) { + + $this->getView() + ->registerMetaTag( + [ + 'name' => 'robots', + 'content' => 'noindex,nofollow', + ] + ); } else if (!empty($paginate)) { $this->getView() @@ -250,7 +260,6 @@ ] ); } - break; } -- libgit2 0.21.4