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 <mgdelacroix@gmail.com>

Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Scott Bishel 2023-01-17 06:54:58 -07:00 committed by GitHub
parent 297e8f4d31
commit 9ff7624c63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,8 +80,12 @@ func createBoardsConfig(mmconfig mm_model.Config, baseURL string, serverID strin
showFullName = *mmconfig.PrivacySettings.ShowFullName showFullName = *mmconfig.PrivacySettings.ShowFullName
} }
serverRoot := baseURL + "/plugins/focalboard"
if mmconfig.FeatureFlags.BoardsProduct {
serverRoot = baseURL + "/boards"
}
return &config.Configuration{ return &config.Configuration{
ServerRoot: baseURL + "/plugins/focalboard", ServerRoot: serverRoot,
Port: -1, Port: -1,
DBType: *mmconfig.SqlSettings.DriverName, DBType: *mmconfig.SqlSettings.DriverName,
DBConfigString: *mmconfig.SqlSettings.DataSource, DBConfigString: *mmconfig.SqlSettings.DataSource,