fixed the url missed after refactoring (#31284)
fixes: #31244 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
0a5a08229f
commit
fab9028caa
1 changed files with 3 additions and 5 deletions
|
@ -1,18 +1,16 @@
|
|||
import { ClipboardCopy, FormGroup } from "@patternfly/react-core";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { HelpItem } from "@keycloak/keycloak-ui-shared";
|
||||
import { useAdminClient } from "../../admin-client";
|
||||
import { HelpItem, useEnvironment } from "@keycloak/keycloak-ui-shared";
|
||||
import { useRealm } from "../../context/realm-context/RealmContext";
|
||||
import { addTrailingSlash } from "../../util";
|
||||
|
||||
export const RedirectUrl = ({ id }: { id: string }) => {
|
||||
const { adminClient } = useAdminClient();
|
||||
|
||||
const { environment } = useEnvironment();
|
||||
const { t } = useTranslation();
|
||||
|
||||
const { realm } = useRealm();
|
||||
const callbackUrl = `${addTrailingSlash(
|
||||
adminClient.baseUrl,
|
||||
environment.serverBaseUrl,
|
||||
)}realms/${realm}/broker`;
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue