handle links with relative referencing