revert part of change (#31055)

fixes: #31038

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit
2024-07-09 12:18:45 +02:00
committed by GitHub
parent 433377136d
commit ffbfb7450f
2 changed files with 5 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ describe("convertClientToUrl", () => {
);
//then
expect(result).toBe("/admin");
expect(result).toBe("/admin/something");
});
it("when baseUrl when rootUrl is not set", () => {

View File

@@ -16,7 +16,10 @@ export const convertClientToUrl = (
}
if (rootUrl === "${authBaseUrl}") {
return rootUrl.replace(/\$\{(authBaseUrl)\}/, environment.serverBaseUrl);
return joinPath(
rootUrl.replace(/\$\{(authBaseUrl)\}/, environment.serverBaseUrl),
baseUrl || "",
);
}
if (rootUrl?.startsWith("http")) {