From 24732a577aa7a6d49e60bc83c1d864c731d5a0be Mon Sep 17 00:00:00 2001
From: Tom Robinson <tlrobinson@gmail.com>
Date: Wed, 9 May 2018 16:55:12 -0700
Subject: [PATCH] Refresh after logging out to ensure all application state is
 cleared

---
 frontend/src/metabase/auth/auth.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/frontend/src/metabase/auth/auth.js b/frontend/src/metabase/auth/auth.js
index 7d249fad2d1..d293aa657a1 100644
--- a/frontend/src/metabase/auth/auth.js
+++ b/frontend/src/metabase/auth/auth.js
@@ -97,6 +97,9 @@ export const logout = createThunkAction(LOGOUT, function() {
     MetabaseAnalytics.trackEvent("Auth", "Logout");
 
     dispatch(push("/auth/login"));
+
+    // refresh to ensure all application state is cleared
+    window.location.reload();
   };
 });
 
-- 
GitLab