1
0
Fork 0
mirror of synced 2024-09-29 16:51:33 +13:00

update redundant comment

This commit is contained in:
Martin McKeaveney 2021-11-09 18:16:52 +01:00
parent f69d00e0ef
commit 5552f7205a

View file

@ -28,8 +28,8 @@
} }
if (user && user.tenantId) { if (user && user.tenantId) {
// no tenant in the url - send to account portal to fix this
if (!urlTenantId) { if (!urlTenantId) {
// redirect to correct tenantId subdomain
if (!window.location.host.includes("localhost")) { if (!window.location.host.includes("localhost")) {
let redirectUrl = window.location.href let redirectUrl = window.location.href
redirectUrl = redirectUrl.replace("://", `://${user.tenantId}.`) redirectUrl = redirectUrl.replace("://", `://${user.tenantId}.`)