Commit 2f044370 authored by Tobias Buckdahn's avatar Tobias Buckdahn

Fixed link preview for social media

parent 7d8223f6
......@@ -26,12 +26,13 @@
{% else %}
{% set header_image_preview = media['themes://brick-camp/images/logo_large.png'].cropZoom(400,400) %}
{% endif %}
{% set header_image_preview_url = base_url_simple ~ header_image_preview.url %}
{% set header_image_preview_url = uri.rootUrl(true) ~ header_image_preview.url %}
<meta name="twitter:image" content="{{ header_image_preview_url }}"/>
<meta property="og:image" content="{{ header_image_preview_url }}"/>
<meta property="og:image:width" content="400"/>
<meta property="og:image:height" content="400"/>
<meta name="twitter:card" content="summary">{{ 'META.DESCRIPTION'|t }}</meta>
<meta name="description" content="{{ 'META.DESCRIPTION'|t }}">
{% include 'partials/langswitcher.hreflang.html.twig' %}
{% endblock meta %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment