Fix navigation link with auth (#2475)

Signed-off-by: Denis Maslennikov <denis.maslennikov@gmail.com>
This commit is contained in:
Denis Maslennikov 2022-12-27 14:45:23 +07:00 committed by GitHub
parent 46a79564ab
commit fc6b62ac30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,8 +293,8 @@ export function navigateToWorkspace (workspace: string, loginInfo?: WorkspaceLog
setLoginInfo(loginInfo) setLoginInfo(loginInfo)
if (navigateUrl !== undefined) { 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) { if (url.path[1] === workspace) {
navigate(url) navigate(url)