Skip to content

Support for Multiple PrivateRoutes #52

@JeffreyAugusto

Description

@JeffreyAugusto

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions