Now correctly handles relative links