{% 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 current_url is containing('www_threefold_io') %} {% set btn_path = 'www_threefold_io' ~ path%} {% else %} {% endif %}