Fix issue with protocol

This commit is contained in:
Joachim
2021-05-26 18:20:22 +02:00
parent e214d8b879
commit f848dcd756
5 changed files with 12 additions and 12 deletions

View File

@ -4,8 +4,8 @@
{% block title %}{{ book|book_title }}{% endblock %}
{% block opengraph_images %}
<meta name="twitter:image" content="{{ media_path }}{{ book.preview_image }}">
<meta name="og:image" content="{{ media_path }}{{ book.preview_image }}">
<meta name="twitter:image" content="{{ request_protocol }}{{ media_path }}{{ book.preview_image }}">
<meta name="og:image" content="{{ request_protocol }}{{ media_path }}{{ book.preview_image }}">
{% endblock %}
{% block content %}