Fixed connector and testcase of PublishLink to get the ID back after
publish.