[UBER-367] Fix url after closing an issue (#3357)

Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@icloud.com>
This commit is contained in:
Sergei Ogorelkov 2023-06-06 16:34:47 +04:00 committed by GitHub
parent 7391ce1c44
commit e083998845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,10 +232,11 @@
loc.path[2] = (currentAppAlias as string) ?? resolved.defaultLocation.path[2]
loc.path[3] = currentSpace ?? (currentSpecial as string) ?? resolved.defaultLocation.path[3]
if (loc.path[3] !== undefined) {
loc.path[4] =
(currentSpace !== undefined ? currentSpecial : undefined) ??
(asideId as string) ??
resolved.defaultLocation.path[4]
if (loc.path[3] === resolved.defaultLocation.path[3]) {
loc.path[4] = resolved.defaultLocation.path[4]
} else {
loc.path[4] = (currentSpace && currentSpecial) ?? (asideId as string)
}
} else {
loc.path.length = 4
}