Commit 0e51e6613600581e9ffcac2e9c768efb4b4d3e06
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 | 100 | |
| 101 | 101 | $filter = \Yii::$app->request->get('filter', []); |
| 102 | 102 | $sort = \Yii::$app->request->get('sort', []); |
| 103 | - | |
| 103 | + $paginate = \Yii::$app->request->get('page', []); | |
| 104 | 104 | if (!empty($meta)) { |
| 105 | 105 | |
| 106 | 106 | $this->getView()->registerMetaTag([ |
| ... | ... | @@ -123,7 +123,7 @@ class Seo extends Widget |
| 123 | 123 | } else if ( |
| 124 | 124 | isset($filter['brands']) && count($filter['brands']) <= 1 && isset($filter['options']) && count($filter['options'], COUNT_RECURSIVE) >= 4 |
| 125 | 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 | 128 | $this->getView()->registerMetaTag([ |
| 129 | 129 | 'name' => 'robots', | ... | ... |