I have a conceptual issue related to my authentication pages.
I currently have this:
<Route path="/" component={App}>
<Route path="login" component={Login} />
<Route path="register" component={Register}/>
<Route path="*" component={NoMatch}/>
</Route>
Now I would like to wrap my entire page "Auth" in the parent container "Auth", so I do this:
<Route path="/" component={App}>
<Route path="/auth" component={Auth}>
<Route path="login" component={Login} />
<Route path="register" component={Register}/>
</Route>
<Route path="*" component={NoMatch}/>
</Route>
Problem: now, if I wanted to access my login page, I would go to
/ authentication / login
But I need my login page to stay
/Login
What is the best opportunity for this?
Thanks in advance for your help.
source
share