revert part of change (#31055)
fixes: #31038 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
433377136d
commit
ffbfb7450f
2 changed files with 5 additions and 2 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Reference in a new issue