Remove relative URLs and add direct link to document history