Skip to content

Router#1

Open
PabloMD wants to merge 2 commits intoszkola-reacta:mainfrom
PabloMD:router
Open

Router#1
PabloMD wants to merge 2 commits intoszkola-reacta:mainfrom
PabloMD:router

Conversation

@PabloMD
Copy link

@PabloMD PabloMD commented Feb 28, 2021

Looks like there is need to compare full path in renderRoutes() ?

But in src/components/SecureRoute/index.js works only the <Redirect ...>.
If you uncomment the

// const renderComponent = () => <Redirect to={{ pathname: loginPath }} />; // return <Route {...props} component={renderComponent} render={undefined} />;

it still renders Dashboard...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant