fix(apps): self-host netbird and stabilize app sessions

This commit is contained in:
archipelago
2026-05-19 16:02:35 -04:00
parent 881779005a
commit ab96c97cb9
17 changed files with 272 additions and 47 deletions
+2 -6
View File
@@ -165,11 +165,6 @@ function closeRouteSession() {
const fallbackPath = typeof fallback === 'string' && fallback.startsWith('/dashboard')
? fallback
: '/dashboard/apps'
const previous = router.options.history.state.back
if (typeof previous === 'string' && previous.startsWith('/dashboard') && router.resolve(previous).name !== 'app-session') {
router.back()
return
}
router.replace(fallbackPath).catch(() => {})
}
@@ -193,7 +188,8 @@ function setMode(mode: DisplayMode) {
if (isInlinePanel.value && mode !== 'panel') {
const id = appId.value
emit('close')
router.push({ name: 'app-session', params: { appId: id } })
const returnTo = route.fullPath.startsWith('/dashboard') ? route.fullPath : '/dashboard/apps'
router.push({ name: 'app-session', params: { appId: id }, query: { returnTo } })
return
}