Replaced localhost links with softcoded links like windows.location.hostname