[#RDOCAPP-22: fixed wrong url set, and added check for attachment link]