Fix upload base URL behind a subdirectory

main
Clément FRÉVILLE 3 weeks ago
parent ba82630d8a
commit 4f19bac707

@ -34,7 +34,8 @@
{% if post.image %}
<tr>
<th>Image</th>
<td><img src="{{ vich_uploader_asset(post, 'imageFile') }}" class="img-thumbnail" width="200" alt=""></td>
{# Vich doesn't prefix the path, as asset() would. #}
<td><img src="{{ app.request.baseUrl }}{{ vich_uploader_asset(post, 'imageFile') }}" class="img-thumbnail" width="200" alt=""></td>
</tr>
{% endif %}
<tr>

Loading…
Cancel
Save