turn relations to hyperlinks (reusing URL generator from msglist.js)