custom/plugins/ThemeOkeonline/src/Resources/views/storefront/page/product-detail/meta.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@parent/storefront/page/product-detail/meta.html.twig' %}
  2. {# Todo: Make a setting for canonicalUrl or include in client-specific theme #}
  3. {% block layout_head_canonical %}
  4.     {% set canonicalUrl = page.product.id %}
  5.     {% if page.product.canonicalProductId %}
  6.         {% set canonicalUrl = page.product.canonicalProductId %}
  7.     {% endif %}
  8.     {#ToDo: check whether seoUrlVloerkleden exists #}
  9.     {#<link rel="canonical" href="{{ seoUrlVloerkleden('frontend.detail.page', { productId: canonicalUrl }) }}" />#}
  10. {% endblock %}