Commit 5cf1ef7bcc410d00f831e8a2ef4e5f3ee0933e3b
1 parent
6e26b1a9
site map
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
console/SiteMapController.php
@@ -213,7 +213,10 @@ | @@ -213,7 +213,10 @@ | ||
213 | 213 | ||
214 | foreach ($this->getCategoriesWithFilters() as $category) { | 214 | foreach ($this->getCategoriesWithFilters() as $category) { |
215 | foreach ($category->taxGroups as $group) { | 215 | foreach ($category->taxGroups as $group) { |
216 | - if($group->is_filter && (!strpos($group->meta_robots, 'noindex'))){ | 216 | + if(strpos($group->meta_robots, 'noindex')) { |
217 | + continue; | ||
218 | + } | ||
219 | + if($group->is_filter){ | ||
217 | foreach ($group->taxOptions as $option) { | 220 | foreach ($group->taxOptions as $option) { |
218 | $url = $urlManager->createAbsoluteUrl( | 221 | $url = $urlManager->createAbsoluteUrl( |
219 | [ | 222 | [ |