From b1d6e2307f04fffe7cfe8dadc63045edab33f103 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Sat, 30 Apr 2016 15:32:35 +0530 Subject: [PATCH] FIX: do not track mailto links --- app/assets/javascripts/discourse/lib/click-track.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/click-track.js.es6 b/app/assets/javascripts/discourse/lib/click-track.js.es6 index b25dacd98e3..cade30d7408 100644 --- a/app/assets/javascripts/discourse/lib/click-track.js.es6 +++ b/app/assets/javascripts/discourse/lib/click-track.js.es6 @@ -20,7 +20,7 @@ export default { topicId = $('#topic').data('topic-id'), userId = $link.data('user-id'); - if (!href || href.trim().length === 0) { return; } + if (!href || href.trim().length === 0 || href.indexOf("mailto:") === 0) { return; } if (!userId) userId = $article.data('user-id');