Hello,
I've added a second route to this project as my app needs multiple pages and paths, but it seems that when any page is refreshed is always redirects to the Dashboard.
Steps to reproduce:
First, add another PrivateRoute below the Dashboard. for example:
<PrivateRoute exact path="/" component={Dashboard} />
<PrivateRoute exact path="/pagetwo" component={PageTwo}/>
Then register, login, append "/pagetwo" to the URL, and refresh the page. The user ends up on "/" (the Dashboard) instead of "/pagetwo". Any ideas to support multiple PrivateRoutes?
Thanks!
Hello,
I've added a second route to this project as my app needs multiple pages and paths, but it seems that when any page is refreshed is always redirects to the Dashboard.
Steps to reproduce:
First, add another PrivateRoute below the Dashboard. for example:
<PrivateRoute exact path="/" component={Dashboard} /><PrivateRoute exact path="/pagetwo" component={PageTwo}/>Then register, login, append "/pagetwo" to the URL, and refresh the page. The user ends up on "/" (the Dashboard) instead of "/pagetwo". Any ideas to support multiple PrivateRoutes?
Thanks!