diff --git a/templates/shortcodes/button.html b/templates/shortcodes/button.html index ad8ef374d..d6c9e9fda 100644 --- a/templates/shortcodes/button.html +++ b/templates/shortcodes/button.html @@ -1,14 +1,14 @@ -{% set path = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') +{% set url = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') | trim_end_matches(pat='"') %} -{% if 'https' in path %} - {% else %} -