diff --git a/.env b/.env
index 041cf495cd5d623fe7ef96d1cfb9d16a7fb669b8..36eb825bd44d556033df28682a3fb7b58c723a30 100644
--- a/.env
+++ b/.env
@@ -7,3 +7,4 @@ REACT_APP_FLAG_CATEGORY_ENABLED=true
 REACT_APP_EXTERNAL_AUDIT_AVAILABLE_FROM_DATE=2022-06-21T00:00:00.000Z
 REACT_APP_EXTERNAL_AUDIT_ENABLED=false
 REACT_APP_AUTHORIZATION_URL=https://auth.cern.ch/auth/realms/cern/protocol/openid-connect/auth
+REACT_APP_OAUTH_LOGOUT_URI=https://auth.cern.ch/auth/realms/cern/protocol/openid-connect/logout
diff --git a/.env.development b/.env.development
index af65345dc031f22ecdb402329019f78c491d8e93..18818313aaf796e008a826af92da471af3fb5f28 100644
--- a/.env.development
+++ b/.env.development
@@ -8,3 +8,4 @@ REACT_APP_NAME="CERN Notifications (Development)"
 REACT_APP_EXTERNAL_AUDIT_AVAILABLE_FROM_DATE=2022-05-23T00:00:00.000Z
 REACT_APP_EXTERNAL_AUDIT_ENABLED=true
 REACT_APP_AUTHORIZATION_URL=https://keycloak-qa.cern.ch/auth/realms/cern/protocol/openid-connect/auth
+REACT_APP_OAUTH_LOGOUT_URI=https://keycloak-qa.cern.ch/auth/realms/cern/protocol/openid-connect/logout
diff --git a/.env.development.local b/.env.development.local
index 4fff32f63e64ce23ee9dfee2f7a62b29789bd019..f2a5433fd2280b4a7662fefc196a3a0dd4d2107e 100644
--- a/.env.development.local
+++ b/.env.development.local
@@ -5,3 +5,4 @@ REACT_APP_OAUTH_CLIENT_ID=notifications-dev
 REACT_APP_NODE_TLS_REJECT_UNAUTHORIZED=0
 REACT_APP_NAME="CERN Notifications (Local Development)"
 REACT_APP_AUTHORIZATION_URL=https://keycloak-qa.cern.ch/auth/realms/cern/protocol/openid-connect/auth
+REACT_APP_OAUTH_LOGOUT_URI=https://keycloak-qa.cern.ch/auth/realms/cern/protocol/openid-connect/logout
diff --git a/.env.development.local.nginx b/.env.development.local.nginx
index c929270233104b93558fb04afb6feb1344dc14e5..52440842cb06939d2b6ea4ec44144aa263ee59ef 100644
--- a/.env.development.local.nginx
+++ b/.env.development.local.nginx
@@ -4,3 +4,4 @@ REACT_APP_OAUTH_LOGOUT_URL=http://localhost/logout
 REACT_APP_NODE_TLS_REJECT_UNAUTHORIZED=0
 REACT_APP_NAME="CERN Notifications (Local Development)"
 REACT_APP_AUTHORIZATION_URL=https://keycloak-qa.cern.ch/auth/realms/cern/protocol/openid-connect/auth
+REACT_APP_OAUTH_LOGOUT_URI=https://keycloak-qa.cern.ch/auth/realms/cern/protocol/openid-connect/logout
diff --git a/.env.production b/.env.production
index 838b78fe3f03c98277bde3111b156a5ba596f391..994221b5f21444af8ce40538fcb7d772a8e40f08 100644
--- a/.env.production
+++ b/.env.production
@@ -7,3 +7,4 @@ REACT_APP_APPLE_WEBSERVICEURL=https://notifications.web.cern.ch/api/apple/safari
 REACT_APP_NAME="CERN Notifications"
 REACT_APP_ARCHIVE_URL=https://cern.ch/notifications-archives
 REACT_APP_EMAIL_GATEWAY_USER=notifications
+REACT_APP_OAUTH_LOGOUT_URI=https://auth.cern.ch/auth/realms/cern/protocol/openid-connect/logout
diff --git a/.env.qa b/.env.qa
index 7a48bbf58f75f9de9221481a9e88f841e25f720e..039bf1c441b5a7476e80f9f58331c097dd46843d 100644
--- a/.env.qa
+++ b/.env.qa
@@ -9,3 +9,4 @@ REACT_APP_ARCHIVE_URL=https://cern.ch/notifications-qa-archives
 REACT_APP_EMAIL_GATEWAY_USER=notifications.qa
 REACT_APP_EXTERNAL_AUDIT_AVAILABLE_FROM_DATE=2022-05-23T00:00:00.000Z
 REACT_APP_EXTERNAL_AUDIT_ENABLED=true
+REACT_APP_OAUTH_LOGOUT_URI=https://keycloak-qa.cern.ch/auth/realms/cern/protocol/openid-connect/logout
diff --git a/src/common/components/CERNToolBar/CERNToolBar.js b/src/common/components/CERNToolBar/CERNToolBar.js
index fdf7d416bff15c36c679770c32b3f71032d487c9..81db43439b322e35b2b1a1b492fbe1f7ba2099e1 100644
--- a/src/common/components/CERNToolBar/CERNToolBar.js
+++ b/src/common/components/CERNToolBar/CERNToolBar.js
@@ -64,7 +64,7 @@ const CERNToolBarAuthenticated = ({logout}) => {
           <a
             className="cern-signout"
             title="Sign out of your account"
-            href={`https://auth.cern.ch/auth/realms/cern/protocol/openid-connect/logout?client_id=${process.env.REACT_APP_OAUTH_CLIENT_ID}&post_logout_redirect_uri=${process.env.REACT_APP_OAUTH_LOGOUT_URL}`}
+            href={`${process.env.REACT_APP_OAUTH_LOGOUT_URI}?client_id=${process.env.REACT_APP_OAUTH_CLIENT_ID}&post_logout_redirect_uri=${process.env.REACT_APP_OAUTH_LOGOUT_URL}`}
           >
             Sign out
           </a>