From 2685b91957d0207c2d31dab828430c78a2fcc3d0 Mon Sep 17 00:00:00 2001 From: lynkos Date: Thu, 9 Apr 2026 12:29:33 -0400 Subject: [PATCH] fix: prevent Firefox from opening blank page on `mailto` links (#2642) --- _includes/sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 1cd0ee8a7..ed35424ef 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -68,7 +68,7 @@ {%- endunless -%} {%- assign email = site.social.email | split: '@' -%} {%- capture url -%} - javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@') + javascript:void(location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@')) {%- endcapture -%} {% when 'rss' %} {% assign url = '/feed.xml' | relative_url %}