Replacing only when logger-min is present in url