diff --git a/packages/management/src/categories/spaces/sub-components/dialogs/CreatePortalDialog/index.tsx b/packages/management/src/categories/spaces/sub-components/dialogs/CreatePortalDialog/index.tsx index d8abef486a..6211a2e534 100644 --- a/packages/management/src/categories/spaces/sub-components/dialogs/CreatePortalDialog/index.tsx +++ b/packages/management/src/categories/spaces/sub-components/dialogs/CreatePortalDialog/index.tsx @@ -70,7 +70,8 @@ const CreatePortalDialog = () => { try { const res = await createNewPortal(data); if (visit) { - return window.open(res?.reference, "_self"); + const protocol = window?.location?.protocol; + return window.open(`${protocol}//${res?.tenant?.domain}/`, "_self"); } await authStore.settingsStore.getAllPortals(); } catch (error) {