change absolute url to relative path