implement link with document id and conversion from simple link to link with doc id