Change the document title according to the title of the main frame.

This commit is contained in:
Jan Böhmer 2022-07-24 15:19:05 +02:00
parent ea6357c259
commit fa5f5bce28
3 changed files with 32 additions and 17 deletions

View file

@ -0,0 +1,18 @@
{# Insert flashes #}
<div class="toasts-global d-none">
{% for label, messages in app.flashes() %}
{% for message in messages %}
{{ include('_toast.html.twig', {
'label': label,
'message': message
}) }}
{% endfor %}
{% endfor %}
</div>
{# Allow pages to request a fully reload of everything #}
{% if global_reload_needed is defined and global_reload_needed %}
<div {{ stimulus_controller('turbo/global_reload') }}></div>
{% endif %}
<div class="d-none" data-title="{% apply title %}{{ page_title }}{% endapply %}" {{ stimulus_controller('turbo/title') }}></div>