Fix issue open direct link empty space (#2789)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-03-21 12:42:36 +06:00 committed by GitHub
parent 889c4a3db3
commit 384aac3682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@
if (resolvedApp === undefined) {
loc.path[2] = (currentAppAlias as string) ?? resolved.defaultLocation.path[2]
loc.path[3] = currentSpace ?? (currentSpecial as string) ?? resolved.defaultLocation.path[3]
if (currentSpace !== undefined) {
if (loc.path[3] !== undefined) {
loc.path[4] = currentSpecial ?? (asideId as string) ?? resolved.defaultLocation.path[4]
} else {
loc.path.length = 4