replace the first occurence of the context path