From 11740e718bef1df0021acdac05df325689bea3ea Mon Sep 17 00:00:00 2001 From: Youssef Date: Fri, 15 Oct 2021 08:39:37 +0100 Subject: [PATCH] fix route rendering --- frontend/src/utils/route-path-helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/route-path-helpers.ts b/frontend/src/utils/route-path-helpers.ts index a97e845d54..2a4966a0e3 100644 --- a/frontend/src/utils/route-path-helpers.ts +++ b/frontend/src/utils/route-path-helpers.ts @@ -1,5 +1,5 @@ export const getTogglePath = (projectId: string, featureToggleName: string, newPath: boolean) => { - return `/projects/${projectId}/features${newPath ? '2' : ''}/${featureToggleName}`; + return `/projects/${projectId}/features${newPath ? `2/${featureToggleName}` : `/${featureToggleName}/strategies`}`; }; export const getToggleCopyPath = (