From 478c091c5301a843a6e06b9038ad4751fb5af078 Mon Sep 17 00:00:00 2001 From: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com> Date: Mon, 25 Apr 2022 14:13:09 +0530 Subject: [PATCH] Fixed a bug preventing any navigation in Mattermost desktop with subpath (#2922) --- mattermost-plugin/webapp/src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mattermost-plugin/webapp/src/index.tsx b/mattermost-plugin/webapp/src/index.tsx index 5733f11e2..95c215276 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 {