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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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")) {