{% set path = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') | trim_end_matches(pat='"') %} {% if 'https' in path %} {% elif path is starting_with('/') %} {% set btn_path = 'www_threefold_io' ~ path %} {% else %} {% endif %}