fix wrong default protocol for customer homepage (#4514)

This commit is contained in:
Simon Schaufelberger
2024-01-02 15:20:24 +01:00
committed by GitHub
parent 9f0165ef4d
commit 26a89725eb
2 changed files with 4 additions and 3 deletions

View File

@@ -103,6 +103,7 @@ class CustomerEditForm extends AbstractType
'label' => 'homepage',
'required' => false,
'block_prefix' => 'homepage',
'default_protocol' => 'https',
])
->add('timezone', TimezoneType::class, [
'label' => 'timezone',

View File

@@ -394,9 +394,9 @@
{# customer homepage, search for "homepage" block_prefix #}
{% block homepage_widget -%}
<div class="input-group input-group-flat">
<span class="input-group-text">
https://
</span>
{% if '://' not in value %}
<span class="input-group-text">https://</span>
{% endif %}
{{ block('url_widget') }}
</div>
{%- endblock homepage_widget %}