Skip to content

Commit 66502c8

Browse files
committed
SEO: Do not follow links on filter optoins
1 parent 10ab84e commit 66502c8

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Swatches/view/frontend/templates/product/layered

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/view/frontend/templates/product/layered/renderer.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
attribute-id="<?= $block->escapeHtmlAttr($swatchData['attribute_id']) ?>">
1616
<div class="swatch-attribute-options clearfix">
1717
<?php foreach ($swatchData['options'] as $option => $label) : ?>
18-
<a href="<?= $block->escapeUrl($label['link']) ?>"
18+
<a href="<?= $block->escapeUrl($label['link']) ?>" rel="nofollow"
1919
aria-label="<?= $block->escapeHtmlAttr($label['label']) ?>"
2020
class="swatch-option-link-layered">
2121
<?php if (isset($swatchData['swatches'][$option]['type'])) : ?>

0 commit comments

Comments
 (0)