contextUrl to env