1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-09-16 08:56:19 +02:00

Fixed a bug preventing any navigation in Mattermost desktop with subpath (#2922)

This commit is contained in:
Harshil Sharma
2022-04-25 14:13:09 +05:30
committed by GitHub
parent 7bd6f47eb9
commit 478c091c53

View File

@@ -87,12 +87,12 @@ function customHistory() {
}
const pathName = event.data.message?.pathName
if (!pathName || !pathName.startsWith(windowAny.frontendBaseURL)) {
if (!pathName || !pathName.startsWith('/boards')) {
return
}
Utils.log(`Navigating Boards to ${pathName}`)
history.replace(pathName.replace(windowAny.frontendBaseURL, ''))
history.replace(pathName.replace('/boards', ''))
})
}
return {