From c79ebdb9c99f1dd1b6d8be59166a038550eb2d94 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 15 Dec 2016 19:10:47 +0200 Subject: [PATCH] sitemap controller fix noindex --- console/controllers/SiteMapController.php | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/console/controllers/SiteMapController.php b/console/controllers/SiteMapController.php index ae4f9d2..f28fb93 100644 --- a/console/controllers/SiteMapController.php +++ b/console/controllers/SiteMapController.php @@ -178,16 +178,19 @@ class SiteMapController extends Controller //brands foreach($this->getCategories() as $category) { + foreach ($this->getBrands($category) as $brand) { if($this->checkFilter($category, ['brands' => [$brand->brand_id]])){ $url = Url::to(['catalog/category', 'category' => $category, 'filters' => ['brands' => [$brand->alias]]]); $this->createRow($url , 0.8, $content); } } + foreach ($this->getBrands($category) as $brand) { $url = Url::to(['catalog/brand', 'brand' => $brand->alias]); $this->createRow($url, 0.8, $content); } + } //filters 1 lvl -- libgit2 0.21.4