From 05fe8bd4d437dc17f03b6f4f45de02be92ac7e48 Mon Sep 17 00:00:00 2001 From: Omar Brikaa Date: Sun, 13 Feb 2022 17:34:36 +0200 Subject: [PATCH] Avoid infinite location.back() in redirect to '/signin' --- src/components/shared/form/create-project.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/shared/form/create-project.tsx b/src/components/shared/form/create-project.tsx index 04643032c..e3c30cedd 100644 --- a/src/components/shared/form/create-project.tsx +++ b/src/components/shared/form/create-project.tsx @@ -100,6 +100,7 @@ export const CreateProjectForm: FC = () => { if (!UserAuthHelper.isUserAuthenticated()) { navigate('/signin', { state: { message: 'You need to be signed it to create a new project' }, + replace: true, }); return; }