Skip to content

Commit 29635cc

Browse files
committed
Add rel=nofollow on filter links
1 parent 66502c8 commit 29635cc

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/LayeredNavigation/view/frontend/templates/layer

1 file changed

+1
-1
lines changed

app/code/Magento/LayeredNavigation/view/frontend/templates/layer/filter.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<?php foreach ($filterItems as $filterItem) : ?>
1919
<li class="item">
2020
<?php if ($filterItem->getCount() > 0) : ?>
21-
<a href="<?= $block->escapeUrl($filterItem->getUrl()) ?>">
21+
<a href="<?= $block->escapeUrl($filterItem->getUrl()) ?>" rel="nofollow">
2222
<?= /* @noEscape */ $filterItem->getLabel() ?>
2323
<?php if ($this->helper(\Magento\Catalog\Helper\Data::class)->shouldDisplayProductCountOnLayer()) : ?>
2424
<span class="count"><?= /* @noEscape */ (int)$filterItem->getCount() ?><span class="filter-count-label">

0 commit comments

Comments
 (0)