fix: redirect to default path after login success if url has prev error (#3599)
This commit is contained in:
parent
1f3eca0a7f
commit
bb0a7e96d8
@ -195,6 +195,12 @@ class App extends React.Component {
|
|||||||
<Switch>
|
<Switch>
|
||||||
<Redirect exact from="/" to={defaultPath} />
|
<Redirect exact from="/" to={defaultPath} />
|
||||||
<Redirect exact from="/search/" to={defaultPath} />
|
<Redirect exact from="/search/" to={defaultPath} />
|
||||||
|
<Redirect
|
||||||
|
// This happens on Identity + Invite Only + External Provider email not matching
|
||||||
|
// the registered user
|
||||||
|
from="/error=access_denied&error_description=Signups+not+allowed+for+this+instance"
|
||||||
|
to={defaultPath}
|
||||||
|
/>
|
||||||
{hasWorkflow ? <Route path="/workflow" component={Workflow} /> : null}
|
{hasWorkflow ? <Route path="/workflow" component={Workflow} /> : null}
|
||||||
<RouteInCollection
|
<RouteInCollection
|
||||||
exact
|
exact
|
||||||
|
Loading…
x
Reference in New Issue
Block a user