fix fix_relative_url for public deploy