Added check for local environment, if local than remove starting /