diff --git a/public/assets/data/patientEducationReferences.json b/public/assets/data/patientEducationReferences.json index 6a12bb56d1..3108bdb3cd 100644 --- a/public/assets/data/patientEducationReferences.json +++ b/public/assets/data/patientEducationReferences.json @@ -37,6 +37,33 @@ "size": "487 KB" } }, + { + "link": { + "title": "Naloxone Information Sheet", + "className": "education", + "url": "{process.env.PUBLIC_URL}/assets/files/NaloxoneInformationSheet.pdf", + "type": "PDF", + "size": "142 KB" + } + }, + { + "link": { + "title": "Naloxone Instruction (English)", + "className": "education", + "url": "https://20797746.fs1.hubspotusercontent-na1.net/hubfs/20797746/Narcan%20Nasal%20Spray%204%20mg%20OTC%20Quick%20Start%20Guide.pdf", + "type": "PDF", + "size": "142 KB" + } + }, + { + "link": { + "title": "Naloxone Instruction (Spanish)", + "className": "education", + "url": "https://narcan.com/hubfs/2024-Website-Assets/Spanish%20Files/NARCAN%20Instructions%20for%20Use.pdf?hsLang=en", + "type": "PDF", + "size": "674 KB" + } + }, { "link": { "title": "Naloxone Patient / Public", diff --git a/public/assets/files/NaloxoneInformationSheet.pdf b/public/assets/files/NaloxoneInformationSheet.pdf new file mode 100644 index 0000000000..bb1c2758f4 Binary files /dev/null and b/public/assets/files/NaloxoneInformationSheet.pdf differ diff --git a/src/helpers/formatit.js b/src/helpers/formatit.js index 717f81e309..af6b739d1d 100644 --- a/src/helpers/formatit.js +++ b/src/helpers/formatit.js @@ -116,7 +116,7 @@ export function stringSubstitutionFormat(result, input, replacement) { */ export function linkFormat(result, input) { let isVideoLink = input['type'] === 'video' && input['embedVideoSrc']; - const referenceURL = input["url"]; + const referenceURL = String(input["url"]).replace("{process.env.PUBLIC_URL}", process.env.PUBLIC_URL); if (isVideoLink) { return (