1
0
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:
Harshil Sharma 2022-04-25 14:13:09 +05:30 committed by GitHub
parent 7bd6f47eb9
commit 478c091c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {