diff --git a/templates/shortcodes/button.html b/templates/shortcodes/button.html index c524eb132..420ede929 100644 --- a/templates/shortcodes/button.html +++ b/templates/shortcodes/button.html @@ -3,18 +3,27 @@ {% set path = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') | trim_end_matches(pat='"') %} +
{{path}}
{% if 'https' in path %} -{% elif base is containing("www_threefold_io") or path is containing("/") %} +{% elif base is containing("www_threefold_io") %} {% set btn_path = base ~ path %} - + +{% elif path is starting_with("/") %} +{% set btn_path = base ~ path %} + + {% else %}