- = Html::a('Оформить заказ', Url::to('order/main'), [ 'class' => 'btn' ]) ?>
+ = Html::a('Оформить заказ', Url::to('/order/main'), [ 'class' => 'btn' ]) ?>
|
diff --git a/frontend/widgets/Seo.php b/frontend/widgets/Seo.php
index dd77395..9373f6a 100755
--- a/frontend/widgets/Seo.php
+++ b/frontend/widgets/Seo.php
@@ -109,7 +109,7 @@ class Seo extends Widget
return $default;
- } else if($this->checkFilter($filter) || isset($filter['brands']) && count($filter['brands']) >= 1){
+ } else if($this->checkFilter($filter)){
$array = $this->arrayBuilder($filter);
return $this->getNameString($array);
}
@@ -199,16 +199,18 @@ class Seo extends Widget
|| isset($filter) && !$this->checkFilter($filter)
) {
+
$this->getView()->registerMetaTag([
'name' => 'robots',
'content' => 'noindex,nofollow'
]);
} else if (
- isset($filter['brands']) && count($filter['brands']) <= 1 && isset($filter) && count($filter, COUNT_RECURSIVE) >= 4
+ isset($filter['brands']) && count($filter['brands']) > 1 && isset($filter) && count($filter, COUNT_RECURSIVE) >= 4
|| isset($filter) && count($filter, COUNT_RECURSIVE) > 4
|| !empty($sort) || !empty($paginate) || isset($filter['prices'])
) {
+
$this->getView()->registerMetaTag([
'name' => 'robots',
'content' => 'noindex,nofollow'
--
libgit2 0.21.4 |