themes/BootstrapChildTheme/DediSyliusSEOPlugin/views/Shop/Header/_links.html.twig line 1

Open in your IDE?
  1. {% set currentRoute = app.request.attributes.get('_route') %}
  2. {% if currentRoute is not null %}
  3.     <link rel="canonical" href="{{ url(currentRoute, app.request.attributes.get('_route_params')) }}"/>
  4. {% endif %}
  5. {% set currentLocale = sylius.localeCode|default('') %}
  6. {% set channel = sylius.channel %}
  7. {% for locale in channel.locales %}
  8.     {% if locale.code != currentLocale %}
  9.         <link rel="alternate" hreflang="{{ locale.code|lower }}" href="{{ url('sylius_shop_homepage', {'_locale':locale.code}) }}"/>
  10.     {% endif %}
  11. {% endfor %}
  12. {% set noindex = dedi_sylius_seo_is_no_index_no_follow() %}
  13. {% if noindex %}
  14.     <meta name="robots" content="noindex, nofollow">
  15. {% else %}
  16.     <meta name="robots" content="index, follow">
  17. {% endif %}