fix: redirect to default path after login success if url has prev error (#3599)

This commit is contained in:
Erez Rokah 2020-04-15 09:42:36 +03:00 committed by GitHub
parent 1f3eca0a7f
commit bb0a7e96d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,6 +195,12 @@ class App extends React.Component {
<Switch>
<Redirect exact from="/" 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}
<RouteInCollection
exact