mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-06 06:49:53 -06:00
revert part of change (#31055)
fixes: #31038 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
@@ -43,7 +43,7 @@ describe("convertClientToUrl", () => {
|
||||
);
|
||||
|
||||
//then
|
||||
expect(result).toBe("/admin");
|
||||
expect(result).toBe("/admin/something");
|
||||
});
|
||||
|
||||
it("when baseUrl when rootUrl is not set", () => {
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user