Avoided boards from navigating to URL not belonging to it (#1460)
This commit is contained in:
parent
e0935eb15c
commit
7ca76b9db1
1 changed files with 2 additions and 1 deletions
|
@ -47,10 +47,11 @@ if (Utils.isDesktop() && Utils.isFocalboardPlugin()) {
|
|||
}
|
||||
|
||||
const pathName = event.data.message?.pathName
|
||||
if (!pathName) {
|
||||
if (!pathName || !pathName.startsWith((window as any).frontendBaseURL)) {
|
||||
return
|
||||
}
|
||||
|
||||
Utils.log(`Navigating Boards to ${pathName}`)
|
||||
history.replace(pathName.replace((window as any).frontendBaseURL, ''))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue