Skip to content

Commit

Permalink
Fix Exception on url instead of ez_url
Browse files Browse the repository at this point in the history
  • Loading branch information
Plopix committed Dec 3, 2020
1 parent a89e85e commit a86ac38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundle/Resources/views/seometas_metaslinks.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
{% if ezplatform.availableLanguages|length > 1 %}
{% for lang in ezplatform.availableLanguages %}
{% if location is defined and not location.isDraft %}
<link rel="alternate" data-sa="{{ ezplatform.translationSiteAccess( lang ) }}" hreflang="{{ lang|getposixlocale_novaseometas }}" href="{{ url( location, {"siteaccess": ezplatform.translationSiteAccess( lang ) } ) }}" />
<link rel="alternate" data-sa="{{ ezplatform.translationSiteAccess( lang ) }}" hreflang="{{ lang|getposixlocale_novaseometas }}" href="{{ ez_url( location, {"siteaccess": ezplatform.translationSiteAccess( lang ) } ) }}" />
{% else %}
{# FAILS WITH PAGE BUILDER ON NEW CREATION
{% set route = ez_route( params={"language": lang} ) %}
<link rel="alternate" hreflang="{{ lang|getposixlocale_novaseometas }}" href="{{ url( route ) }}" />
#}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}

0 comments on commit a86ac38

Please sign in to comment.