diff --git a/app/assets/javascripts/discourse/components/badge-card.js.es6 b/app/assets/javascripts/discourse/components/badge-card.js.es6 index 641511ae5ed..ea10bbd0e55 100644 --- a/app/assets/javascripts/discourse/components/badge-card.js.es6 +++ b/app/assets/javascripts/discourse/components/badge-card.js.es6 @@ -7,7 +7,7 @@ export default Ember.Component.extend({ @computed('badge.url', 'filterUser') url(badgeUrl, filterUser) { - return (filterUser) ? + return (filterUser && this.currentUser) ? `${badgeUrl}?username=${this.currentUser.get('username_lower')}` : badgeUrl; },