diff --git a/query-creator/create-query/steps/firebase.js b/query-creator/create-query/steps/firebase.js index 117b4c5..1904b5a 100644 --- a/query-creator/create-query/steps/firebase.js +++ b/query-creator/create-query/steps/firebase.js @@ -15,7 +15,12 @@ exports.getResource = async (runnableUrl, reportServiceSource) => { const activityUrl = searchParams.get("activity"); if (sequenceUrl || activityUrl) { runnableUrl = sequenceUrl || activityUrl; - runnableUrl = runnableUrl.replace("api/v1/", "").replace(".json", ""); + + // ensure https urls as that is how they are stored in Firebase and convert the api endpoint url to the runnable url + runnableUrl = runnableUrl + .replace("http:", "https:") + .replace("api/v1/", "") + .replace(".json", ""); } } const params = {