Move app history replace to happen only if not in plugin legacy mode (#1466)
This commit is contained in:
parent
d0dd6ad31a
commit
ee3f00858a
1 changed files with 6 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue