Skip to content

Commit 70abf55

Browse files
fix(+layout): don't redirect fresh users to Showroom
New users have no chats, but should not be redirected to the showroom. This fixes a change introduced with: 4d188c3 feat(frontend): send unauthenticated users to an external URL Refs: PRODAI-483
1 parent f0c4ff5 commit 70abf55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/(app)/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
if ($user === undefined || $user === null) {
6565
await goto('/auth');
6666
} else if (!await hasChats() && !hasStoredState()) {
67-
window.location = UNAUTHENTICATED_USERS_TARGET;
67+
window.location = '/explore';
6868
return;
6969
} else if (['user', 'admin'].includes($user?.role)) {
7070
try {

0 commit comments

Comments
 (0)