diff --git a/app/assets/javascripts/discourse/components/click_track.js b/app/assets/javascripts/discourse/components/click_track.js index 0d98cd68c2e..399d5a8bafb 100644 --- a/app/assets/javascripts/discourse/components/click_track.js +++ b/app/assets/javascripts/discourse/components/click_track.js @@ -85,7 +85,7 @@ Discourse.ClickTrack = { } // If we're on the same site, use the router and track via AJAX - if ((href.indexOf(Discourse.URL.origin()) === 0) && (!href.match(/\.(png|gif|jpg|jpeg)$/i))) { + if ((href.indexOf(Discourse.URL.origin()) === 0) && !href.match(/\/uploads\//i)) { Discourse.ajax("/clicks/track", { data: { url: href, @@ -109,5 +109,3 @@ Discourse.ClickTrack = { return false; } }; - -