From 37a9164fa0130cb18c0695cc9fafe9a96ee36ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 26 Nov 2014 13:05:43 +0100 Subject: [PATCH] FIX: click counter for attachments --- app/assets/javascripts/discourse/views/post_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/post_view.js b/app/assets/javascripts/discourse/views/post_view.js index 0eb45c93d41..77e0b917ee0 100644 --- a/app/assets/javascripts/discourse/views/post_view.js +++ b/app/assets/javascripts/discourse/views/post_view.js @@ -157,7 +157,7 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, { self.$(".cooked a[href]").each(function() { var link = $(this); - if (!lc.internal && link.attr('href') === lc.url) { + if ((!lc.internal || lc.url[0] === "/") && link.attr('href') === lc.url) { // don't display badge counts on category badge if (link.closest('.badge-category').length === 0 && ((link.closest(".onebox-result").length === 0 && link.closest('.onebox-body').length === 0) || link.hasClass("track-link"))) { link.append("