diff --git a/app/assets/javascripts/discourse/views/post.js.es6 b/app/assets/javascripts/discourse/views/post.js.es6 index 21535c72d50..8dd08a5b612 100644 --- a/app/assets/javascripts/discourse/views/post.js.es6 +++ b/app/assets/javascripts/discourse/views/post.js.es6 @@ -186,10 +186,12 @@ const PostView = Discourse.GroupedView.extend(Ember.Evented, { const $link = $(this), href = $link.attr('href'); - let valid = !lc.internal && href === lc.url; + let valid = href === lc.url; // this might be an attachment - if (lc.internal) { valid = href.indexOf(lc.url) >= 0; } + if (lc.internal && /^\/uploads\//.test(lc.url)) { + valid = href.indexOf(lc.url) >= 0; + } if (valid) { // don't display badge counts on category badge & oneboxes (unless when explicitely stated)