From f69d00e0ef82db3642db9a89f66473381cf0d823 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 9 Nov 2021 18:14:37 +0100 Subject: [PATCH] review --- packages/builder/src/pages/builder/_layout.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/pages/builder/_layout.svelte b/packages/builder/src/pages/builder/_layout.svelte index 6227f7938c..6e879228e0 100644 --- a/packages/builder/src/pages/builder/_layout.svelte +++ b/packages/builder/src/pages/builder/_layout.svelte @@ -30,11 +30,11 @@ if (user && user.tenantId) { // no tenant in the url - send to account portal to fix this if (!urlTenantId) { - let redirectUrl = $admin.accountPortalUrl if (!window.location.host.includes("localhost")) { - const redirectUrl = redirectUrl.replace("://", `://${user.tenantId}.`) + let redirectUrl = window.location.href + redirectUrl = redirectUrl.replace("://", `://${user.tenantId}.`) + window.location.href = redirectUrl } - window.location.href = redirectUrl return }