From 8b8e92ceac7a121bd16909ea2d8401a889ae44cb Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 15 Nov 2023 20:34:45 +0100 Subject: [PATCH] replace history instead of pushing --- www/app/[domain]/transcripts/[transcriptId]/record/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/app/[domain]/transcripts/[transcriptId]/record/page.tsx b/www/app/[domain]/transcripts/[transcriptId]/record/page.tsx index 36f4bbe9..147f8827 100644 --- a/www/app/[domain]/transcripts/[transcriptId]/record/page.tsx +++ b/www/app/[domain]/transcripts/[transcriptId]/record/page.tsx @@ -69,9 +69,9 @@ const TranscriptRecord = (details: TranscriptDetails) => { // Shallow redirection does not work on NextJS 13 // https://github.com/vercel/next.js/discussions/48110 // https://github.com/vercel/next.js/discussions/49540 - router.push(newUrl, undefined); + router.replace(newUrl); // history.replaceState({}, "", newUrl); - } + } // history.replaceState({}, "", newUrl); }, [webSockets.status.value, transcript.response?.status]); useEffect(() => {