Fix relative link handling.