From 5c3fb0a7a377df0e9adf8fdd78a5004c0cc6efa5 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Tue, 17 Dec 2024 10:25:43 -0500 Subject: [PATCH] Extend cookie time to solve issue with external redirect (#5977) --- app/javascript/components/rooms/room/join/JoinCard.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/components/rooms/room/join/JoinCard.jsx b/app/javascript/components/rooms/room/join/JoinCard.jsx index c89f1b7550..873a3dfa9e 100644 --- a/app/javascript/components/rooms/room/join/JoinCard.jsx +++ b/app/javascript/components/rooms/room/join/JoinCard.jsx @@ -71,7 +71,7 @@ export default function JoinCard() { useEffect(() => { // set cookie to return to if needed const date = new Date(); - date.setTime(date.getTime() + (60 * 1000)); // expire the cookie in 1min + date.setTime(date.getTime() + (60 * 10000)); // expire the cookie in 10min document.cookie = `location=${path};path=/;expires=${date.toGMTString()}`; return () => { // delete redirect location when unmounting