diff --git a/mattermost-plugin/webapp/src/index.tsx b/mattermost-plugin/webapp/src/index.tsx index 5733f11e208..95c2152766d 100644 --- a/mattermost-plugin/webapp/src/index.tsx +++ b/mattermost-plugin/webapp/src/index.tsx @@ -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 {