build proper url for invitations