fix: editor switch workspace issue

This commit is contained in:
Muhsin Shah 2023-04-07 14:58:47 +05:30
parent 3d57e64d2c
commit a76e4189d3

View file

@ -28,7 +28,7 @@ const AppLoaderComponent = (props) => {
const sub_path = window?.public_config?.SUB_PATH ? stripTrailingSlash(window?.public_config?.SUB_PATH) : '';
organizationService.switchOrganization(orgId).then(
() => {
window.location.href = `${sub_path}${path}`;
window.location.href = `${sub_path}/${orgId}${path}`;
},
() => {
return (window.location.href = `${sub_path}/login/${orgId}?redirectTo=${path}`);