fix: 404s due to wrong booking link(without org domain) (#17318)

This commit is contained in:
Hariom Balhara
2024-10-25 08:18:08 +00:00
committed by GitHub
parent 87baf0363e
commit 9157e1faf3
+1 -1
View File
@@ -420,7 +420,7 @@ const EmailEmbedPreview = ({
selectedDateAndTime[key].map((time) => {
// If teamId is present on eventType and is not null, it means it is a team event.
// So we add 'team/' to the url.
const bookingURL = `${WEBSITE_URL}/${
const bookingURL = `${eventType.bookerUrl}/${
eventType.teamId !== null ? "team/" : ""
}${username}/${eventType.slug}?duration=${
eventType.length