feat(web): add public package browsing and organization redirect management

This commit is contained in:
2026-03-21 10:54:10 +00:00
parent 392060bf23
commit 6d6ed61e70
10 changed files with 244 additions and 16 deletions

View File

@@ -68,8 +68,14 @@ class AppRouter {
return;
}
// Check if user is logged in to decide default route
const isLoggedIn = appstate.loginStatePart.getState().isLoggedIn;
if (!path || path === '/') {
this.router.pushUrl('/dashboard');
if (isLoggedIn) {
this.router.pushUrl('/dashboard');
}
// If not logged in, stay on / for public browsing
} else {
const segments = path.split('/').filter(Boolean);
const view = segments[0];