diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 9428ec8..7e67730 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -48,14 +48,13 @@ const Header: React.FC = () => { const navigationItems = filterNavigationByDashboardRole(isAdmin); - // eslint-disable-next-line react-hooks/exhaustive-deps const signOutUrl = useMemo(() => { const { hostname } = window.location; // If we are developing locally, we need to use the init cluster's public URL if (hostname === 'localhost') { return `https://sso.init.stackspin.net/oauth2/sessions/logout`; } - return `https://sso.${hostname.replace('dashboard', '')}/oauth2/sessions/logout`; + return `https://${hostname.replace('dashboard', 'sso')}/oauth2/sessions/logout`; }, []); return (