Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Fix wrong default protocol for homepage #4514

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Form/CustomerEditForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
'label' => 'homepage',
'required' => false,
'block_prefix' => 'homepage',
'default_protocol' => 'https',
])
->add('timezone', TimezoneType::class, [
'label' => 'timezone',
Expand Down
6 changes: 3 additions & 3 deletions templates/form/blocks.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
Loading