Skip to content

Commit

Permalink
Fixed a bug preventing any navigation in Mattermost desktop with subp…
Browse files Browse the repository at this point in the history
  • Loading branch information
harshilsharma63 authored Apr 25, 2022
1 parent 7bd6f47 commit 478c091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mattermost-plugin/webapp/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 478c091

Please sign in to comment.