Fix upload base URL behind a subdirectory
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user