From 219e239c89ffe503f544f27497cf0e7bde5f0dfc Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 28 Mar 2022 15:15:12 +0200 Subject: [PATCH] Show baseUrl when rootUrl is not set (#2285) --- src/clients/ClientsSection.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/clients/ClientsSection.tsx b/src/clients/ClientsSection.tsx index a25e0398c1..1c66829826 100644 --- a/src/clients/ClientsSection.tsx +++ b/src/clients/ClientsSection.tsx @@ -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; }, }, ]}