From c8622bd82b2dcfada3a281aef5bd3ebc22aa3462 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sat, 11 Apr 2026 09:05:44 -0400 Subject: [PATCH] fix: show sign-in gate on private spaces instead of redirecting away Previously, visiting a private space on *.rspace.online without a session redirected to rspace.online, causing a redirect loop after login. Now shows the sign-in gate in-place so the user logs in and stays on the same page. Co-Authored-By: Claude Opus 4.6 --- server/shell.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server/shell.ts b/server/shell.ts index 0ced9fdb..292c1328 100644 --- a/server/shell.ts +++ b/server/shell.ts @@ -844,14 +844,8 @@ export function renderShell(opts: ShellOptions): string { return; } - // Private spaces: redirect logged-out visitors to the module landing page + // Private spaces: show sign-in gate for logged-out visitors if (!hasToken) { - var host = window.location.host.split(':')[0]; - if (host.endsWith('.rspace.online') || host === 'rspace.online') { - var modId = document.body.getAttribute('data-module-id') || 'rspace'; - window.location.replace('https://rspace.online/' + modId); - return; - } showGate('sign-in'); return; }