diff --git a/packages/builder/src/pages/builder/_layout.svelte b/packages/builder/src/pages/builder/_layout.svelte index 6e879228e0..bf55be5534 100644 --- a/packages/builder/src/pages/builder/_layout.svelte +++ b/packages/builder/src/pages/builder/_layout.svelte @@ -28,8 +28,8 @@ } if (user && user.tenantId) { - // no tenant in the url - send to account portal to fix this if (!urlTenantId) { + // redirect to correct tenantId subdomain if (!window.location.host.includes("localhost")) { let redirectUrl = window.location.href redirectUrl = redirectUrl.replace("://", `://${user.tenantId}.`)