Skip to content

Commit 2685b91

Browse files
authored
fix: prevent Firefox from opening blank page on mailto links (#2642)
1 parent 6245dec commit 2685b91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{%- endunless -%}
6969
{%- assign email = site.social.email | split: '@' -%}
7070
{%- capture url -%}
71-
javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@')
71+
javascript:void(location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@'))
7272
{%- endcapture -%}
7373
{% when 'rss' %}
7474
{% assign url = '/feed.xml' | relative_url %}

0 commit comments

Comments
 (0)