fix wrong default protocol for customer homepage (#4514)
This commit is contained in:
committed by
GitHub
parent
9f0165ef4d
commit
26a89725eb
@@ -103,6 +103,7 @@ class CustomerEditForm extends AbstractType
|
||||
'label' => 'homepage',
|
||||
'required' => false,
|
||||
'block_prefix' => 'homepage',
|
||||
'default_protocol' => 'https',
|
||||
])
|
||||
->add('timezone', TimezoneType::class, [
|
||||
'label' => 'timezone',
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user