# HG changeset patch # User Alexandre Segura # Date 1498653842 -7200 # Node ID d48a74232d22ba1f5189f5e7b4fa6d1450c6f43c # Parent dc906a57861651cee5f26f5d1dfbaeaefc16ecce Go back to homepage on logout. diff -r dc906a578616 -r d48a74232d22 client/src/components/Navbar.js --- a/client/src/components/Navbar.js Wed Jun 28 14:43:35 2017 +0200 +++ b/client/src/components/Navbar.js Wed Jun 28 14:44:02 2017 +0200 @@ -16,6 +16,7 @@ const onClickLogout = (e) => { e.preventDefault(); authActions.logout(); + history.push('/'); } const onClickLogin = (e) => {