From fa5a780de34fc182870370c07b8456b6a567c222 Mon Sep 17 00:00:00 2001 From: aykhanahmadli Date: Wed, 7 Aug 2024 21:33:23 +0200 Subject: [PATCH] fix logout url --- .../lib/components/CustomContainerFactory.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ottehr-components/lib/components/CustomContainerFactory.tsx b/packages/ottehr-components/lib/components/CustomContainerFactory.tsx index 41a71d3a..275bf5d5 100644 --- a/packages/ottehr-components/lib/components/CustomContainerFactory.tsx +++ b/packages/ottehr-components/lib/components/CustomContainerFactory.tsx @@ -73,7 +73,9 @@ export const CustomContainer: FC = ({ if (logoutHandler !== undefined) { logoutHandler(); } else { - logout({ returnTo: 'https://telemed.ottehr.com/location/ak/in-person/prebook' }); + logout({ + returnTo: window.location.origin, + }); } }, [logout, logoutHandler]);