An Application Tracking System to help job finders ease their out-of-control spreadsheet use tracking every job application record.
1
stars
0
forks
source link
Redirect user to to the page if user was trying to access an internal page #48
Closed
rivernews closed 4 years ago
Since we have session-persisten login state now, so it makes sense to start working on this.
Process flow
com-page/<com-id>
<page-route>
) detects non-login state at first, so redirect to home page.!this.props.auth.isLogin && <Redirect to="/" />}
componentDidMount() RequestedLoginAuth()
this.props.auth.isLogin && <Redirect to="/home/" />}
A quick solution
<Redirect to="/?next=<the internal url here>" />
this.props.location
.../
??next=...
, then pull that next url out and redirect to that url instead.