Fix a bug when the site is not hosted on a TLD root