From c2e3ea9c94e8bcc54dcd5df4d3e0be115c56e83d Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Tue, 24 Sep 2024 14:09:17 -0700 Subject: [PATCH] Fixed algolia image url --- .../algolia/results/summer-course/summer-course.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/algolia/results/summer-course/summer-course.tsx b/src/components/algolia/results/summer-course/summer-course.tsx index dac1b575..e7a0a1e3 100644 --- a/src/components/algolia/results/summer-course/summer-course.tsx +++ b/src/components/algolia/results/summer-course/summer-course.tsx @@ -81,6 +81,7 @@ const SummerCourse = ({hit}: {hit: CourseHit}) => { }) const hitDomain = new URL(hit.url).origin + const imageUrl = hit.photo?.replace(hitDomain, process.env.NEXT_PUBLIC_DRUPAL_BASE_URL as string) return (
@@ -94,9 +95,9 @@ const SummerCourse = ({hit}: {hit: CourseHit}) => {
{hit.sum_course_catalog_number}
- {hit.photo && ( + {imageUrl && (
- {""} + {""}
)}