Fixing redirects on team change outside of boards (#2652)
This commit is contained in:
parent
a99f5341e0
commit
aa9ebc237f
1 changed files with 5 additions and 2 deletions
|
@ -189,8 +189,11 @@ export default class Plugin {
|
|||
if (currentTeamID && currentTeamID !== prevTeamID) {
|
||||
prevTeamID = currentTeamID
|
||||
store.dispatch(setTeam(currentTeamID))
|
||||
browserHistory.push(`/team/${currentTeamID}`)
|
||||
wsClient.subscribeToTeam(currentTeamID)
|
||||
if (window.location.pathname.startsWith(windowAny.frontendBaseURL || '')) {
|
||||
console.log("REDIRECTING HERE")
|
||||
browserHistory.push(`/team/${currentTeamID}`)
|
||||
wsClient.subscribeToTeam(currentTeamID)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue