feat: Display Account context in the UI (#4069)

This commit is contained in:
Pranav Raj S 2022-02-25 16:36:36 +05:30 committed by GitHub
parent 2c8a3ef3b2
commit cc74bebc0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 138 additions and 6 deletions

View file

@ -44,5 +44,9 @@ export const clearCookiesOnLogout = () => {
Cookies.remove('auth_data');
Cookies.remove('user');
window.location = frontendURL('login');
const globalConfig = window.globalConfig || {};
const logoutRedirectLink =
globalConfig.LOGOUT_REDIRECT_LINK || frontendURL('login');
window.location = logoutRedirectLink;
};