diff --git a/client/src/actions/login.js b/client/src/actions/login.js index 90cc0780..04e81b03 100644 --- a/client/src/actions/login.js +++ b/client/src/actions/login.js @@ -11,7 +11,8 @@ export const processLogin = values => async (dispatch) => { dispatch(processLoginRequest()); try { await apiClient.login(values); - window.location.replace(window.location.origin); + const dashboardUrl = window.location.origin + window.location.pathname.replace('/login.html', '/'); + window.location.replace(dashboardUrl); dispatch(processLoginSuccess()); } catch (error) { dispatch(addErrorToast({ error })); diff --git a/client/src/components/Header/index.js b/client/src/components/Header/index.js index 9bd99920..12373b9e 100644 --- a/client/src/components/Header/index.js +++ b/client/src/components/Header/index.js @@ -61,9 +61,9 @@ class Header extends Component {
{!dashboard.processingProfile && dashboard.name && - - sign_out - + + sign_out + }