fix: prevent HTML encoding of forward slash in booking confirmation (#26949)

- Add interpolation: { escapeValue: false } to AttendeeRequestEmail.tsx
- Add interpolation: { escapeValue: false } to attendee-request-email.ts
- Add interpolation: { escapeValue: false } to bookings-single-view.tsx

This prevents special characters like '/' from being HTML-encoded to '/'
in booking confirmation emails and success page dialogs.

Fixes #26938
This commit is contained in:
Eesh Midha
2026-01-17 04:53:38 +00:00
committed by GitHub
parent 9c6e331a37
commit 07fee3a0aa
3 changed files with 3 additions and 1 deletions
@@ -313,6 +313,7 @@ export default function Success(props: PageProps) {
if (props.profile.name !== null) {
return t(`user_needs_to_confirm_or_reject_booking${titleSuffix}`, {
user: props.profile.name,
interpolation: { escapeValue: false },
});
}
return t(`needs_to_be_confirmed_or_rejected${titleSuffix}`);
@@ -15,7 +15,7 @@ export const AttendeeRequestEmail = (props: React.ComponentProps<typeof Attendee
props.calEvent.recurringEvent?.count
? "user_needs_to_confirm_or_reject_booking_recurring"
: "user_needs_to_confirm_or_reject_booking",
{ user: props.calEvent.organizer.name }
{ user: props.calEvent.organizer.name, interpolation: { escapeValue: false } }
)}
</>
}
@@ -26,6 +26,7 @@ export default class AttendeeRequestEmail extends AttendeeScheduledEmail {
}),
this.calEvent.attendees[0].language.translate("user_needs_to_confirm_or_reject_booking", {
user: this.calEvent.organizer.name,
interpolation: { escapeValue: false },
})
),
};