diff --git a/app/assets/javascripts/discourse/widgets/topic-map.js.es6 b/app/assets/javascripts/discourse/widgets/topic-map.js.es6 index 7d4c89c0b39..c489eb7ec27 100644 --- a/app/assets/javascripts/discourse/widgets/topic-map.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-map.js.es6 @@ -160,7 +160,8 @@ createWidget('topic-map-expanded', { const domain = l.domain; if (domain && domain.length) { const s = domain.split('.'); - host = h('span.domain', s[s.length-2] + "." + s[s.length-1]); + if (s[0] === 'www') s.shift(); + host = h('span.domain', s.join('.')); } }