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; }