correcting links to be relative instead of absolute