fix replacedUrl definition