Ensure links are not recursively nested