🐛 fix(comments): fix malformed URLs in Isso mails (#211)

This commit is contained in:
Óscar Fernández
2023-10-25 17:47:46 +02:00
committed by GitHub
parent 0b6cb31bba
commit be218c0b6c
3 changed files with 5 additions and 4 deletions

View File

@@ -66,8 +66,9 @@
{% elif comment_system == "isso" %}
data-endpoint-url="{{ config.extra.isso.endpoint_url }}"
{% if config.extra.isso.page_id_is_slug %}
data-isso-id="{{ page.slug }}"
data-title="{{ page.slug }}"
{%- set default_lang_url = current_path | replace(from='/' ~ lang ~ '/', to = '/') -%}
data-isso-id="{{ default_lang_url }}"
data-title="{{ default_lang_url }}"
{% endif %}
{% if config.extra.isso.lang %}
data-page-language="{{ config.extra.isso.lang }}"