Skip to content

Commit

Permalink
Merge pull request #2651 from acrobat/fix-seo-og-url
Browse files Browse the repository at this point in the history
[SeoBundle] Use correct nodetranslation property to generate slug url
  • Loading branch information
acrobat committed Mar 18, 2020
2 parents f14852b + 012c502 commit 7034383
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@
<meta property="og:url" content="{{ seo.ogUrl | replace_url }}">
{% else %}
{% if currentNode %}
<meta property="og:url" content="{{ url('_slug', { 'url': currentNode.slug, '_locale': app.request.locale }) }}"/>
<meta property="og:url" content="{{ url('_slug', { 'url': currentNode.url, '_locale': app.request.locale }) }}"/>
{% endif %}
{% endif %}
{% if seo.getOgImage() is defined and seo.getOgImage() is not null %}
Expand Down

0 comments on commit 7034383

Please sign in to comment.