Get host from front end for invite link

This way we don't need to rely on config files to get the refer link
right.