From 9ff7624c635abfdee4720426dce0d6d0cffe8b2d Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Tue, 17 Jan 2023 06:54:58 -0700 Subject: [PATCH] Change board serverRoot from '/plugins/focalboard' to '/boards' (#4467) * change board serverRoot from '/plugins/focalboard' to '/boards' * update based on feature flag * Update mattermost-plugin/server/boards/boardsapp_util.go Co-authored-by: Miguel de la Cruz Co-authored-by: Miguel de la Cruz Co-authored-by: Mattermost Build --- mattermost-plugin/server/boards/boardsapp_util.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mattermost-plugin/server/boards/boardsapp_util.go b/mattermost-plugin/server/boards/boardsapp_util.go index e1a8ea986..0a2b7eaa8 100644 --- a/mattermost-plugin/server/boards/boardsapp_util.go +++ b/mattermost-plugin/server/boards/boardsapp_util.go @@ -80,8 +80,12 @@ func createBoardsConfig(mmconfig mm_model.Config, baseURL string, serverID strin showFullName = *mmconfig.PrivacySettings.ShowFullName } + serverRoot := baseURL + "/plugins/focalboard" + if mmconfig.FeatureFlags.BoardsProduct { + serverRoot = baseURL + "/boards" + } return &config.Configuration{ - ServerRoot: baseURL + "/plugins/focalboard", + ServerRoot: serverRoot, Port: -1, DBType: *mmconfig.SqlSettings.DriverName, DBConfigString: *mmconfig.SqlSettings.DataSource,