Links don't work in homwpage because of one section code

Hi!

because of this section of featured collection, none of the links in the whole page won’t work anymore!

anyone has an idea ?

{{ ‘component-card.css’ | asset_url | stylesheet_tag }}
{{ ‘component-price.css’ | asset_url | stylesheet_tag }}
{{ ‘component-product-grid.css’ | asset_url | stylesheet_tag }}
{{ ‘base.css’ | asset_url | stylesheet_tag }}

{{ ‘component-slider.css’ | asset_url | stylesheet_tag }}
{{ ‘template-collection.css’ | asset_url | stylesheet_tag }}

{%- liquid
assign products_to_display = section.settings.collection.all_products_count

if section.settings.collection.all_products_count > section.settings.products_to_show
assign products_to_display = section.settings.products_to_show
assign more_in_collection = true
endif
-%}

{{ section.settings.title | escape }}

{%- if section.settings.show_view_all and section.settings.swipe_on_mobile and more_in_collection -%}
{{ ‘sections.featured_collection.view_all’ }}
{%- endif -%}

    {%- for product in section.settings.collection.products limit: section.settings.products_to_show -%}
  • {% render 'product-card', product_card_product: product, media_size: section.settings.image_ratio, show_secondary_image: section.settings.show_secondary_image, add_image_padding: section.settings.add_image_padding, show_vendor: section.settings.show_vendor, show_image_outline: section.settings.show_image_outline, show_rating: section.settings.show_rating %}
  • {%- else -%} {%- for i in (1..4) -%}
  • {% render 'product-card-placeholder' %}
  • {%- endfor -%} {%- endfor -%}
{%- if section.settings.collection.all_products_count > 2 and section.settings.swipe_on_mobile and section.settings.products_to_show > 2 -%}
{% render 'icon-caret' %}
1 / {{ 'general.slider.of' }} {{ products_to_display }}
{% render 'icon-caret' %}
{%- endif -%}

{% schema %}
{
“name”: “featured-collection”,
“tag”: “section”,
“class”: “spaced-section”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“default”: “Featured collection”,
“label”: “Featured collection”
},
{
“type”: “collection”,
“id”: “collection”,
“label”: “collection”
},
{
“type”: “range”,
“id”: “products_to_show”,
“min”: 3,
“max”: 12,
“step”: 3,
“default”: 3,
“label”: “products_to_show”
},
{
“type”: “checkbox”,
“id”: “show_view_all”,
“default”: true,
“label”: “checkbox”
},
{
“type”: “checkbox”,
“id”: “swipe_on_mobile”,
“default”: false,
“label”: “swipe on mobile”
},
{
“type”: “header”,
“content”: “header”
},
{
“type”: “select”,
“id”: “image_ratio”,
“options”: [
{
“value”: “adapt”,
“label”: “adapt”
},
{
“value”: “portrait”,
“label”: “portrait”
},
{
“value”: “square”,
“label”: “squere”
}
],
“default”: “adapt”,
“label”: “adapt”
},
{
“type”: “checkbox”,
“id”: “show_secondary_image”,
“default”: false,
“label”: “show secondery image”
},
{
“type”: “checkbox”,
“id”: “add_image_padding”,
“default”: false,
“label”: “padding”
},
{
“type”: “checkbox”,
“id”: “show_image_outline”,
“default”: true,
“label”: “outline”
},
{
“type”: “checkbox”,
“id”: “show_vendor”,
“default”: false,
“label”: “vendor”
},
{
“type”: “checkbox”,
“id”: “show_rating”,
“default”: false,
“label”: “rating”,
“info”: “show rating”
}
],
“presets”: [
{
“name”: “featured-collection”
}
]
}
{% endschema %}