fix pathname for publishing