{% sw_extends '@Storefront/storefront/component/product/card/action.html.twig' %}
{% block component_product_box_action_detail %}
{% set linkToParentInheritanceOverride = product.translated.customFields.atl_seo_url_manager_product_box_link_inheritance_override %}
{% if config('AtlSeoUrlManager.config.linkToParent') and not linkToParentInheritanceOverride and product.parentId is not empty %}
{% set id = product.parentId %}
{% endif %}
{{ parent() }}
{% endblock %}