Web: Management: fixed the transition after creating the portal

This commit is contained in:
DmitrySychugov 2023-09-11 19:56:14 +05:00
parent 8a185b09f0
commit 67f80d74fa

View File

@ -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) {