mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-27 08:31:20 +02:00
Resolved issue regarding openign boards link from channels (#1388)
* Resolved issue regarding openign boards link from channels * Removed unnecessary check
This commit is contained in:
parent
17991b9161
commit
7ce9e44a5d
@ -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 <Redirect to='/login'/>
|
||||
}
|
||||
|
||||
if (continueToWelcomeScreen(boardIdIsValidUUIDV4)) {
|
||||
if (continueToWelcomeScreen()) {
|
||||
const originalPath = `/${buildOriginalPath('', boardId, viewId, cardId)}`
|
||||
const queryString = boardIdIsValidUUIDV4 ? `r=${originalPath}` : ''
|
||||
return <Redirect to={`/welcome?${queryString}`}/>
|
||||
|
Loading…
Reference in New Issue
Block a user