diff --git a/src/Models/ExternalLink.php b/src/Models/ExternalLink.php index 3ff49ddc..306519e2 100644 --- a/src/Models/ExternalLink.php +++ b/src/Models/ExternalLink.php @@ -28,6 +28,7 @@ public function getCMSFields(): FieldList { $this->beforeUpdateCMSFields(function (FieldList $fields) { $field = UrlField::create('ExternalUrl', _t(__CLASS__ . '.EXTERNAL_URL_FIELD', 'External URL')); + $field->setAllowedProtocols(['http', 'https']); $field->setDescription(_t( __CLASS__ . '.EXTERNAL_URL_FIELD_DESCRIPTION', 'The URL must start with either http:// or https://'