mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 05:53:09 +03:00
Fix navigation link with auth (#2475)
Signed-off-by: Denis Maslennikov <denis.maslennikov@gmail.com>
This commit is contained in:
parent
46a79564ab
commit
fc6b62ac30
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user