only call history replace if a plugin (#1457)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Scott Bishel 2021-10-06 08:27:44 -06:00 committed by GitHub
parent e18ecc3be2
commit d0dd6ad31a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {