From bc9d76e7dad1db3e9a9b6cca2704d3431c0b6db5 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Wed, 2 Apr 2025 05:30:28 +0530 Subject: [PATCH] chore: do not route to meeting-ended page for daily link used for testing (#20371) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: remove 14 day buffer for QA * chore: check uid --------- Co-authored-by: Omar López --- apps/web/lib/video/[uid]/getServerSideProps.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/lib/video/[uid]/getServerSideProps.ts b/apps/web/lib/video/[uid]/getServerSideProps.ts index 136f5f2155..aa75fb5490 100644 --- a/apps/web/lib/video/[uid]/getServerSideProps.ts +++ b/apps/web/lib/video/[uid]/getServerSideProps.ts @@ -72,7 +72,11 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { //find out if the meeting is in the past const isPast = booking?.endTime <= exitDate; - if (isPast) { + const testingUid = + CAL_VIDEO_MEETING_LINK_FOR_TESTING && CAL_VIDEO_MEETING_LINK_FOR_TESTING?.split("/").pop(); + const isTestingLink = booking?.uid === testingUid; + + if (isPast && !isTestingLink) { return { redirect: { destination: `/video/meeting-ended/${booking?.uid}`,