Fix URLs for envs + Media API