Fixed bug when adding domain to links