convert absolute url to relative.