diff --git a/app/pages/PageEnigma/js/api_manager.ts b/app/pages/PageEnigma/js/api_manager.ts index b40122447f..4aff6f836c 100644 --- a/app/pages/PageEnigma/js/api_manager.ts +++ b/app/pages/PageEnigma/js/api_manager.ts @@ -123,7 +123,7 @@ export class APIManager { const json = await JSON.parse(await response.text()); const bucket_path = json["media_file"]["public_bucket_path"]; const media_base_url = environmentVariables.value.GOOGLE_API; - const media_url = `/vocodes-public${media_base_url}${bucket_path}`; // gets you a bucket path + const media_url = `${media_base_url}/vocodes-public${bucket_path}`; // gets you a bucket path const file_response = await fetch(media_url); @@ -154,7 +154,7 @@ export class APIManager { const json = await JSON.parse(await response.text()); const bucketPath = json["media_file"]["public_bucket_path"]; const media_base_url = environmentVariables.value.GOOGLE_API; - const media_url = `/vocodes-public${media_base_url}${bucketPath}`; // gets you a bucket path + const media_url = `${media_base_url}/vocodes-public${bucket_path}`; // gets you a bucket path return media_url; }