diff --git a/webapp/src/app.tsx b/webapp/src/app.tsx index dc4b42cc8..4fb43987a 100644 --- a/webapp/src/app.tsx +++ b/webapp/src/app.tsx @@ -93,11 +93,14 @@ const App = React.memo((): JSX.Element => { dispatch(fetchLanguage()) dispatch(fetchMe()) dispatch(fetchClientConfig()) - if (Utils.isFocalboardPlugin()) { - history.replace(window.location.pathname.replace((window as any).frontendBaseURL, '')) - } }, []) + if (Utils.isFocalboardPlugin()) { + useEffect(() => { + history.replace(window.location.pathname.replace((window as any).frontendBaseURL, '')) + }, []) + } + if (!inPluginLegacy) { useEffect(() => { wsClient.open()