mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-23 18:34:02 +02:00
Fixed a bug preventing any navigation in Mattermost desktop with subpath (#2922)
This commit is contained in:
parent
7bd6f47eb9
commit
478c091c53
@ -87,12 +87,12 @@ function customHistory() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const pathName = event.data.message?.pathName
|
const pathName = event.data.message?.pathName
|
||||||
if (!pathName || !pathName.startsWith(windowAny.frontendBaseURL)) {
|
if (!pathName || !pathName.startsWith('/boards')) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
Utils.log(`Navigating Boards to ${pathName}`)
|
Utils.log(`Navigating Boards to ${pathName}`)
|
||||||
history.replace(pathName.replace(windowAny.frontendBaseURL, ''))
|
history.replace(pathName.replace('/boards', ''))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user