Topic "popular links" panel domain extraction doesn't handle country TLDs

The expectations of what is correct here is alittle confusing for me.

community.seqta.com.au seqta.com.au

This provides me with a hint that I’ll be heading to a domain registered in Australia at the seqta domain

vs

www.city.amakusa.kumamoto.jp kumamoto.jp

This provides me with a hint that I’ll be heading to a domain registered in the Kumamoto prefecture in Japan

Should I be reverting

https://github.com/discourse/discourse/commit/7690cc6ca50d48c86449dd9c7bf16301aa31ebc4

first? Otherwise, we’ll be showing the full domain for all links.