From fc6b62ac308e2406515d5d14587d86113ddf24f1 Mon Sep 17 00:00:00 2001 From: Denis Maslennikov <41147528+disant1@users.noreply.github.com> Date: Tue, 27 Dec 2022 14:45:23 +0700 Subject: [PATCH] Fix navigation link with auth (#2475) Signed-off-by: Denis Maslennikov --- plugins/login-resources/src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/login-resources/src/utils.ts b/plugins/login-resources/src/utils.ts index 7c32e569d2..3dcceded45 100644 --- a/plugins/login-resources/src/utils.ts +++ b/plugins/login-resources/src/utils.ts @@ -293,8 +293,8 @@ export function navigateToWorkspace (workspace: string, loginInfo?: WorkspaceLog setLoginInfo(loginInfo) if (navigateUrl !== undefined) { - const url = JSON.parse(decodeURIComponent(navigateUrl)) as Location - + const loc = JSON.parse(decodeURIComponent(navigateUrl)) as Location + const url = JSON.parse(decodeURIComponent(loc.query?.navigateUrl ?? '')) as Location if (url.path[1] === workspace) { navigate(url)