Made relative links absolute and guarded against links getting screwed up in the extension.