From d16fe72f0f236697867f222fb5435881465050ba Mon Sep 17 00:00:00 2001 From: dannyvw Date: Thu, 5 Nov 2020 13:33:57 +0000 Subject: [PATCH] Fix form submission --- .../views/FileUploadPagePart/submission.html.twig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Kunstmaan/FormBundle/Resources/views/FileUploadPagePart/submission.html.twig b/src/Kunstmaan/FormBundle/Resources/views/FileUploadPagePart/submission.html.twig index d363eb73ff..0ed608e4f8 100644 --- a/src/Kunstmaan/FormBundle/Resources/views/FileUploadPagePart/submission.html.twig +++ b/src/Kunstmaan/FormBundle/Resources/views/FileUploadPagePart/submission.html.twig @@ -1,11 +1,10 @@ {% if resource is defined and resource is not null %} {% if not resource.isNull() %} {% if resource.url is defined and resource.url is not null %} - {% set href = host ~ resource.url %} + {% set href = asset(resource.url, 'media') %} {% else %} - {% set href = host ~ form_submission_webdir ~ resource.fileName %} + {% set href = asset(host ~ form_submission_webdir ~ resource.fileName, 'media') %} {% endif %} - {{ resource.fileName }} + {{ resource.fileName }} {% endif %} {% endif %}