Relativize links where possible