diff --git a/src/Form/CustomerEditForm.php b/src/Form/CustomerEditForm.php index e846e25a..1e7cb27c 100644 --- a/src/Form/CustomerEditForm.php +++ b/src/Form/CustomerEditForm.php @@ -103,6 +103,7 @@ class CustomerEditForm extends AbstractType 'label' => 'homepage', 'required' => false, 'block_prefix' => 'homepage', + 'default_protocol' => 'https', ]) ->add('timezone', TimezoneType::class, [ 'label' => 'timezone', diff --git a/templates/form/blocks.html.twig b/templates/form/blocks.html.twig index b5366cc2..4e3aed46 100644 --- a/templates/form/blocks.html.twig +++ b/templates/form/blocks.html.twig @@ -394,9 +394,9 @@ {# customer homepage, search for "homepage" block_prefix #} {% block homepage_widget -%}
- - https:// - + {% if '://' not in value %} + https:// + {% endif %} {{ block('url_widget') }}
{%- endblock homepage_widget %}