From d0dd6ad31abc24f84dac8ea1588a494b7d5ba663 Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Wed, 6 Oct 2021 08:27:44 -0600 Subject: [PATCH] only call history replace if a plugin (#1457) Co-authored-by: Mattermod --- webapp/src/app.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/src/app.tsx b/webapp/src/app.tsx index 2d07f0917..dc4b42cc8 100644 --- a/webapp/src/app.tsx +++ b/webapp/src/app.tsx @@ -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) {