I'm trying to get react router 4 to redirect to my login page that is publicly available when the user clicks the the logout button in their Navbar. The logout function works, the user is logged out, however, the redirect never happens. What am I missing here?
I'm using react-router v4 and meteorjs.
<button type="button" className="btn btn-link logout-button" onClick={() => Meteor.logout(() => (<Redirect to="/login" />))}>Logout</button>