Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix settings redirect

Smaug6739c1cbaaacd5f5
diff --git a/frontend/app/pages/dashboard/settings/index.vue b/frontend/app/pages/dashboard/settings/index.vue
index 5d38b390..ba29f15f 100644
--- a/frontend/app/pages/dashboard/settings/index.vue
+++ b/frontend/app/pages/dashboard/settings/index.vue
@@ -60,7 +60,7 @@ const router = useRouter();
const routeBeforeEnter = ref();
onBeforeMount(() => (routeBeforeEnter.value = useRouter().options.history.state.back));
watchEffect(() => (currentPage.value = route.query.p || 'profile'));
-const close = () => router.push(routeBeforeEnter.value || '/dashboard');
+const close = () => router.push(!routeBeforeEnter.value?.startsWith('/dashboard/settings') ? routeBeforeEnter.value : '/dashboard');
</script>
<style scoped lang="scss">