resolve uids and absolute link to internal pages and images