Show baseUrl when rootUrl is not set (#2285)

This commit is contained in:
Erik Jan de Wit 2022-03-28 15:15:12 +02:00 committed by GitHub
parent 95a23f12a9
commit 219e239c89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,14 +191,15 @@ export default function ClientsSection() {
!client.rootUrl.startsWith("http") ||
client.rootUrl.includes("$")
) {
client.rootUrl =
return (
client.rootUrl
.replace("${authBaseUrl}", baseUrl)
.replace("${authAdminUrl}", baseUrl) +
(client.baseUrl ? client.baseUrl.substr(1) : "");
(client.baseUrl ? client.baseUrl.substring(1) : "")
);
}
}
return client.rootUrl;
return client.baseUrl;
},
},
]}