From 2b2547025134131dafe6cd4f76d981f0d708d9cc Mon Sep 17 00:00:00 2001 From: Stephen Zweibel Date: Wed, 11 Sep 2024 10:44:16 -0400 Subject: [PATCH] refactor: Update workshop link in UseWorkshopCard component The workshop link in the UseWorkshopCard component was updated to use a relative path instead of an absolute path. This change ensures that the link works correctly when the application is deployed. --- components/Hooks/UseWorkshopsCard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Hooks/UseWorkshopsCard.js b/components/Hooks/UseWorkshopsCard.js index bd77545..5111042 100644 --- a/components/Hooks/UseWorkshopsCard.js +++ b/components/Hooks/UseWorkshopsCard.js @@ -79,7 +79,7 @@ export default function UseWorkshopCard({ workshop, gitUser, gitRepo, instUser, } }, [coverimage]) - const workshopLink = './dynamic/?user=' + gitUser + '&repo=' + gitRepo + '&file=' + workshop.name.split('.')[0] + '&instUser=' + instUser + '&instRepo=' + instRepo; + const workshopLink = './dynamic?user=' + gitUser + '&repo=' + gitRepo + '&file=' + workshop.name.split('.')[0] + '&instUser=' + instUser + '&instRepo=' + instRepo; if(parsedWorkshop?.data?.published === false){ console.log('not published', parsedWorkshop.data.title)