Skip to content

Commit

Permalink
Merge branch 'feat/ksuite-redirect' into 'master'
Browse files Browse the repository at this point in the history
web only redirect to ksuite from base url

See merge request kchat/webapp!954
  • Loading branch information
antonbuks committed Oct 23, 2024
2 parents 2e2083f + 144f635 commit 2617911
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ export function loadMe(): ActionFuncAsync<boolean> {
const serverVersion = Client4.getServerVersion();
dispatch(setServerVersion(serverVersion));

if (!isDesktopApp() && Client4.isIkBaseUrl() && process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'development') { //eslint-disable-line no-process-env
// eslint-disable-next-line no-process-env
window.location.assign(`https://ksuite.${process.env.BASE_URL?.split('.')[1]}`);
}

try {
const kSuiteCall = await dispatch(getMyKSuites());
const kSuites = getTeams(getState());
Expand Down

0 comments on commit 2617911

Please sign in to comment.