diff --git a/server/config/client.go b/server/config/client.go index 7927c3f0e6..73e9ca5bdd 100644 --- a/server/config/client.go +++ b/server/config/client.go @@ -294,6 +294,7 @@ func GenerateLimitedClientConfig(c *model.Config, telemetryID string, license *m props["AppDownloadLink"] = *c.NativeAppSettings.AppDownloadLink props["AndroidAppDownloadLink"] = *c.NativeAppSettings.AndroidAppDownloadLink props["IosAppDownloadLink"] = *c.NativeAppSettings.IosAppDownloadLink + props["MobileExternalBrowser"] = strconv.FormatBool(*c.NativeAppSettings.MobileExternalBrowser) props["DiagnosticId"] = telemetryID props["TelemetryId"] = telemetryID diff --git a/server/public/model/config.go b/server/public/model/config.go index 3e571efd14..006d416c4c 100644 --- a/server/public/model/config.go +++ b/server/public/model/config.go @@ -2764,6 +2764,7 @@ type NativeAppSettings struct { AppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"` AndroidAppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"` IosAppDownloadLink *string `access:"site_customization,write_restrictable,cloud_restrictable"` + MobileExternalBrowser *bool `access:"site_customization,write_restrictable,cloud_restrictable"` } func (s *NativeAppSettings) SetDefaults() { @@ -2782,6 +2783,10 @@ func (s *NativeAppSettings) SetDefaults() { if s.AppCustomURLSchemes == nil { s.AppCustomURLSchemes = GetDefaultAppCustomURLSchemes() } + + if s.MobileExternalBrowser == nil { + s.MobileExternalBrowser = NewPointer(false) + } } type ElasticsearchSettings struct {