Use relative URLs and fix anchor links