From 3f455aedd94296fb77c2ffe64dc8fe0ec15c14d9 Mon Sep 17 00:00:00 2001
From: Luka Radenovic <luka@init.hr>
Date: Wed, 13 Jul 2022 14:35:45 +0200
Subject: [PATCH] Cleanup singOutUrl

---
 src/components/Header/Header.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx
index 9428ec88..7e677304 100644
--- a/src/components/Header/Header.tsx
+++ b/src/components/Header/Header.tsx
@@ -48,14 +48,13 @@ const Header: React.FC<HeaderProps> = () => {
 
   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 (
-- 
GitLab