From 7ce9e44a5d737bf870b9c181697f7516c6d98f11 Mon Sep 17 00:00:00 2001 From: Harshil Sharma Date: Mon, 4 Oct 2021 14:44:18 +0530 Subject: [PATCH] Resolved issue regarding openign boards link from channels (#1388) * Resolved issue regarding openign boards link from channels * Removed unnecessary check --- webapp/src/app.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webapp/src/app.tsx b/webapp/src/app.tsx index 175ad6811..79f50b85d 100644 --- a/webapp/src/app.tsx +++ b/webapp/src/app.tsx @@ -85,6 +85,7 @@ const App = React.memo((): JSX.Element => { dispatch(fetchLanguage()) dispatch(fetchMe()) dispatch(fetchClientConfig()) + history.replace(window.location.pathname.replace((window as any).frontendBaseURL, '')) }, []) useEffect(() => { @@ -106,8 +107,8 @@ const App = React.memo((): JSX.Element => { setTimeout(() => dispatch(setGlobalError('')), 0) } - const continueToWelcomeScreen = (boardIdIsValidUUIDV4 = true) => { - return Utils.isFocalboardPlugin() && loggedIn === true && (!UserSettings.welcomePageViewed || !boardIdIsValidUUIDV4) + const continueToWelcomeScreen = () => { + return Utils.isFocalboardPlugin() && loggedIn === true && !UserSettings.welcomePageViewed } const buildOriginalPath = (workspaceId = '', boardId = '', viewId = '', cardId = '') => { @@ -231,7 +232,7 @@ const App = React.memo((): JSX.Element => { return } - if (continueToWelcomeScreen(boardIdIsValidUUIDV4)) { + if (continueToWelcomeScreen()) { const originalPath = `/${buildOriginalPath('', boardId, viewId, cardId)}` const queryString = boardIdIsValidUUIDV4 ? `r=${originalPath}` : '' return