From 7690cc6ca50d48c86449dd9c7bf16301aa31ebc4 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 31 Mar 2017 17:24:24 +0800 Subject: [PATCH] UX: Don't try to figure out root domain. --- app/assets/javascripts/discourse/widgets/topic-map.js.es6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/topic-map.js.es6 b/app/assets/javascripts/discourse/widgets/topic-map.js.es6 index 7d4c89c0b39..aca0c8aae2a 100644 --- a/app/assets/javascripts/discourse/widgets/topic-map.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-map.js.es6 @@ -159,8 +159,7 @@ createWidget('topic-map-expanded', { if (l.title && l.title.length) { const domain = l.domain; if (domain && domain.length) { - const s = domain.split('.'); - host = h('span.domain', s[s.length-2] + "." + s[s.length-1]); + host = h('span.domain', domain); } }