Conditionally set url segments based on environment.