From 20ec05097483611703a0a07dddca9c7c15c3a62a Mon Sep 17 00:00:00 2001 From: Mat Sz Date: Thu, 19 Oct 2023 19:49:47 +0200 Subject: [PATCH] resolve back button hijack issue --- web/src/screens/Redirect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/screens/Redirect.tsx b/web/src/screens/Redirect.tsx index 86b8aa6..17254d5 100644 --- a/web/src/screens/Redirect.tsx +++ b/web/src/screens/Redirect.tsx @@ -23,7 +23,7 @@ export const Redirect: React.FC = observer(() => { randomString(nameLength, nameCharacterSet); if (connected && clientId) { - navigate('/' + currentNetworkName); + navigate('/' + currentNetworkName, { replace: true }); } }, [connected, networkName, navigate, clientId, suggestedNetworkName]);