Skip to content

Commit

Permalink
Fix form submission
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvw committed Nov 5, 2020
1 parent 19fc3c4 commit 85093b0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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 %}
<a target="_blank"
href="{{ href }}">{{ resource.fileName }}</a>
<a target="_blank" href="{{ href }}">{{ resource.fileName }}</a>
{% endif %}
{% endif %}

0 comments on commit 85093b0

Please sign in to comment.