fix(links): make use of URL_PROTOCOL in document/resource link

extends #253 - seems more consisten to me - what do you think?