From 0f4ceb1ca72448265e933a9680c837ffd48040f7 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 17 Jan 2022 18:09:30 +0530 Subject: [PATCH] fix(ui) - login redirect --- frontend/app/Router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/Router.js b/frontend/app/Router.js index 7e5511231..edacf56c5 100644 --- a/frontend/app/Router.js +++ b/frontend/app/Router.js @@ -102,7 +102,7 @@ class Router extends React.Component { this.props.fetchTenants(); } - if (!prevProps.isLoggedIn && this.props.isLoggedIn && this.state.destinationPath !== routes.login()) { + if (!prevProps.isLoggedIn && this.props.isLoggedIn && this.state.destinationPath !== routes.login() && this.state.destinationPath !== '/') { this.props.history.push(this.state.destinationPath); this.setState({ destinationPath: null }); }