{% set currentRoute = app.request.attributes.get('_route') %}
{% if currentRoute is not null %}
<link rel="canonical" href="{{ url(currentRoute, app.request.attributes.get('_route_params')) }}"/>
{% endif %}
{% set currentLocale = sylius.localeCode|default('') %}
{% set channel = sylius.channel %}
{% for locale in channel.locales %}
{% if locale.code != currentLocale %}
<link rel="alternate" hreflang="{{ locale.code|lower }}" href="{{ url('sylius_shop_homepage', {'_locale':locale.code}) }}"/>
{% endif %}
{% endfor %}
{% set noindex = dedi_sylius_seo_is_no_index_no_follow() %}
{% if noindex %}
<meta name="robots" content="noindex, nofollow">
{% else %}
<meta name="robots" content="index, follow">
{% endif %}