only call history replace if a plugin (#1457)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
parent
e18ecc3be2
commit
d0dd6ad31a
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ const App = React.memo((): JSX.Element => {
|
|||
dispatch(fetchLanguage())
|
||||
dispatch(fetchMe())
|
||||
dispatch(fetchClientConfig())
|
||||
history.replace(window.location.pathname.replace((window as any).frontendBaseURL, ''))
|
||||
if (Utils.isFocalboardPlugin()) {
|
||||
history.replace(window.location.pathname.replace((window as any).frontendBaseURL, ''))
|
||||
}
|
||||
}, [])
|
||||
|
||||
if (!inPluginLegacy) {
|
||||
|
|
Loading…
Reference in a new issue