replace history instead of pushing

This commit is contained in:
Sara
2023-11-15 20:34:45 +01:00
parent 1fc261a669
commit 8b8e92ceac

View File

@@ -69,9 +69,9 @@ const TranscriptRecord = (details: TranscriptDetails) => {
// Shallow redirection does not work on NextJS 13 // Shallow redirection does not work on NextJS 13
// https://github.com/vercel/next.js/discussions/48110 // https://github.com/vercel/next.js/discussions/48110
// https://github.com/vercel/next.js/discussions/49540 // https://github.com/vercel/next.js/discussions/49540
router.push(newUrl, undefined); router.replace(newUrl);
// history.replaceState({}, "", newUrl); // history.replaceState({}, "", newUrl);
} } // history.replaceState({}, "", newUrl);
}, [webSockets.status.value, transcript.response?.status]); }, [webSockets.status.value, transcript.response?.status]);
useEffect(() => { useEffect(() => {