diff --git a/firebase.json b/firebase.json index 3db664ba..c9533520 100644 --- a/firebase.json +++ b/firebase.json @@ -17,6 +17,13 @@ } ] } + ], + "redirects": [ + { + "source": "/list*", + "type": 302, + "destination": "https://view.flodesk.com/pages/6454088302298deb828d9ab0" + } ] }, "emulators": { diff --git a/frontend/src/audio.11tydata.js b/frontend/src/audio.11tydata.js index 6f95fc7b..ae474bdc 100644 --- a/frontend/src/audio.11tydata.js +++ b/frontend/src/audio.11tydata.js @@ -12,6 +12,9 @@ module.exports = { // Download URL fileUrl: (data) => `${process.env.STORAGE_BASE_URL}/${data.audio.fileId}.mp3`, + // Computing the Feedback URL here because the env variables are not available in templates + feedbackUrl: (data) => + `${process.env.FEEDBACK_FORM_AUDIOS}${data.audio.fileId}`, // Compiling content details for the audio player contentDetails: ({ audio: { diff --git a/frontend/src/audio.html b/frontend/src/audio.html index 71d7d488..907476e8 100644 --- a/frontend/src/audio.html +++ b/frontend/src/audio.html @@ -133,7 +133,7 @@