Commit 0e51e6613600581e9ffcac2e9c768efb4b4d3e06

Authored by Dmytry Fedorchuk
1 parent 537ccffb

paginate seo

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
frontend/widgets/Seo.php
@@ -100,7 +100,7 @@ class Seo extends Widget @@ -100,7 +100,7 @@ class Seo extends Widget
100 100
101 $filter = \Yii::$app->request->get('filter', []); 101 $filter = \Yii::$app->request->get('filter', []);
102 $sort = \Yii::$app->request->get('sort', []); 102 $sort = \Yii::$app->request->get('sort', []);
103 - 103 + $paginate = \Yii::$app->request->get('page', []);
104 if (!empty($meta)) { 104 if (!empty($meta)) {
105 105
106 $this->getView()->registerMetaTag([ 106 $this->getView()->registerMetaTag([
@@ -123,7 +123,7 @@ class Seo extends Widget @@ -123,7 +123,7 @@ class Seo extends Widget
123 } else if ( 123 } else if (
124 isset($filter['brands']) && count($filter['brands']) <= 1 && isset($filter['options']) && count($filter['options'], COUNT_RECURSIVE) >= 4 124 isset($filter['brands']) && count($filter['brands']) <= 1 && isset($filter['options']) && count($filter['options'], COUNT_RECURSIVE) >= 4
125 || isset($filter['options']) && count($filter['options'], COUNT_RECURSIVE) > 4 125 || isset($filter['options']) && count($filter['options'], COUNT_RECURSIVE) > 4
126 - || !empty($sort) || isset($filter['prices']) 126 + || !empty($sort) || !empty($paginate) || isset($filter['prices'])
127 ) { 127 ) {
128 $this->getView()->registerMetaTag([ 128 $this->getView()->registerMetaTag([
129 'name' => 'robots', 129 'name' => 'robots',