fix URL generation for MediaCore with "proxy_prefix" configuration (if MediaCore runs behind a proxy)