feat(web): add public package browsing and organization redirect management
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user