Skip to content

Commit

Permalink
refactor: Update workshop link in UseWorkshopCard component
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
szweibel committed Sep 11, 2024
1 parent 3e419ee commit 2b25470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Hooks/UseWorkshopsCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2b25470

Please sign in to comment.