I'm using React and React Router on a Meteor JS app.
I have a Route exact path="/" that works if I use this.props.history.push('/') but if I use this.props.history.goBack() even if the URL changes to just http://localhost:3000/ the Route exact path="/" does not get called:
<Route exact path="/" render={() => {
console.log('React exact path /')
return mainpage
}} />
How can I fix this? or should I just always use push? or should I just use replace?