From 2fc081e6ef0067254e2486114f67c028cdb02c4a Mon Sep 17 00:00:00 2001 From: Victor O Date: Fri, 26 Apr 2024 17:52:40 -0700 Subject: [PATCH] Feature/fixed scene load 404 (#254) need netlify preview Co-authored-by: Victor --- app/pages/PageEnigma/js/api_manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }