add /
after baseUrl (#605)
This commit is contained in:
parent
435fb81550
commit
10f06af8aa
1 changed files with 5 additions and 3 deletions
|
@ -87,9 +87,11 @@ export const upperCaseFormatter = (): IFormatter => (
|
|||
};
|
||||
|
||||
export const getBaseUrl = (adminClient: KeycloakAdminClient) => {
|
||||
return adminClient.keycloak
|
||||
return (
|
||||
(adminClient.keycloak
|
||||
? adminClient.keycloak.authServerUrl!
|
||||
: adminClient.baseUrl + "/";
|
||||
: adminClient.baseUrl) + "/"
|
||||
);
|
||||
};
|
||||
|
||||
export const emailRegexPattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||
|
|
Loading…
Reference in a new issue