Merge branch 'dev'
CI/CD / deploy (push) Failing after 2m12s
Details
CI/CD / deploy (push) Failing after 2m12s
Details
This commit is contained in:
commit
79ea868234
|
|
@ -316,18 +316,18 @@ function autoResolveSpace(token: string, username: string): void {
|
||||||
if (!username) return;
|
if (!username) return;
|
||||||
|
|
||||||
const currentSpace = _getCurrentSpace();
|
const currentSpace = _getCurrentSpace();
|
||||||
|
const currentModule = _getCurrentModule();
|
||||||
|
|
||||||
if (currentSpace !== "demo") {
|
if (currentSpace !== "demo" || currentModule !== "rspace") {
|
||||||
// User is on a specific space (their own or someone else's).
|
// User is viewing a specific page (their own space, someone else's,
|
||||||
// Provision their personal space silently in the background.
|
// or a module on demo). Don't redirect — just reload so the
|
||||||
// Don't redirect — they chose to be here. Just reload so the
|
|
||||||
// authenticated session takes effect (access gates, CRDT sync).
|
// authenticated session takes effect (access gates, CRDT sync).
|
||||||
autoProvisionSpace(token);
|
autoProvisionSpace(token);
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// On demo/landing — provision personal space and redirect to dashboard
|
// On demo dashboard (landing page) — provision personal space and redirect
|
||||||
fetch("/api/spaces/auto-provision", {
|
fetch("/api/spaces/auto-provision", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue