{# In a field layout template, the entry is automatically passed in as the `element` variable. #} {% set submission = element.informationRequestSubmission.isIncomplete(null).one() %} {% set event = element.event.one() %} {% if submission and event.informationRequestEnabled %} {# Get the base URL for the entry's current site. This naturally handles the [HOSTNAME]/[CURRENT_LANGUAGE]/ format defined in your site settings. #} {% set baseUrl = element.site.getBaseUrl() | trim('/') %} {% set linkUrl = baseUrl ~ '/info-request?sid=' ~ submission.uid %}
Shareable link:
{{ linkUrl }}