UBER-513: Fix desktop app navigation (#3459)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-06-26 21:03:12 +07:00
committed by GitHub
parent 7e7e67632b
commit 70d78e50b3
9 changed files with 53 additions and 21 deletions
@@ -25,7 +25,8 @@
navigate,
resolvedLocationStore,
setMetadataLocalStorage,
IconCheck
IconCheck,
locationStorageKeyId
} from '@hcengineering/ui'
import { workbenchId } from '@hcengineering/workbench'
import { onMount } from 'svelte'
@@ -72,7 +73,7 @@
closePopup()
closePopup()
if (ws !== getCurrentLocation().path[1]) {
const last = localStorage.getItem(`platform_last_loc_${ws}`)
const last = localStorage.getItem(`${locationStorageKeyId}_${ws}`)
if (last !== null) {
navigate(JSON.parse(last))
} else navigate({ path: [workbenchId, ws] })